Results 1 to 7 of 7

Thread: SendToAFriend with custom fields

  1. #1
    Join Date
    May 2007
    Posts
    99
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Question SendToAFriend with custom fields

    I can't check this myself, because Juno is overriding Outlook Express, so no email program can open for me through internet shortcuts. Here's the script:

    <a href="mailto:?subject=Your friend recommends this link &cc= &bcc= &body=Your friend was on our site, and wants you to see this:<br>http://mysite.com">Send to a friend</a>

    All I want to know is:
    1) Does it open an email for you with the custom subject and body I put?
    2) For the site link in the body, does it appear on the second line since I put the <br> in there?

    Just trying to make sure it's fine before I publish. Thanks!

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    The break will work, and as far as I know, the subject should work. I'll test it in a few minuets for you to find out.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Sorry, I mis-read the code the first time. I thought the <br> was for the page, not the Email. In any case, here is the correction to your code:

    Code:
    <a href="mailto:?subject=Your friend recommends this link &cc= &bcc= &body=Your friend was on our site, and wants you to see this &#37;0D%0A http://mysite.com">Send to a friend</a>
    Hope this solves the problem for you.
    Last edited by Jas; 06-27-2007 at 12:01 AM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Note: the above will work (on Windows, not sure about any other OS), as long as the user has a default mail client set up on their computer. If they don't, then they get nothing. Also, doing this is a bad idea mostly because of SPAM. I recommend looking into getting a server side form to email script.

    Anyways, hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The <br> shows up as is, as part of the email message. The rest of it works fine.

    To put a line break, try this:

    <a href="mailto:?subject=Your friend recommends this link &cc= &bcc= &body=Your friend was on our site, and wants you to see this:&#37;0Ahttp://mysite.com">Send to a friend</a>

  6. #6
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by Veronica View Post

    <a href="mailto:?subject=Your friend recommends this link &cc= &bcc= &body=Your friend was on our site, and wants you to see this:&#37;0Ahttp://mysite.com">Send to a friend</a>
    /\ I would go with that one /\
    Mine has a slight flaw, sorry. . .(it brings you to a search page at the same time).
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  7. #7
    Join Date
    May 2007
    Posts
    99
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    Thank you sooo much guys!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •