Results 1 to 3 of 3

Thread: mailto body javascript

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mailto body javascript

    I have written a code that will place an email button on each post I create on blogger. I need the body of the email to load with the url of the page from which it originiated. I have written the button's code in blogger's template therefore no code relating to the post resides on each individual post. I need the email element to deal with a variable and generate the right url to go into the email.

    Does anyone know if this is possible?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Can you explain in more detail? I don't understand the situation.

    I do not believe this is possible in Javascript (since JS can't send emails), but you may be able to do it with a serverside language like PHP. At least I think that's what you're asking about...
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default The code

    The code in the blogger template is:

    <a href='mailto:52parallelnorth+discountreview@gmail.com?subject=Discount%20Review&amp;Body=I would like for the url to be generated here...'><img src='http://farm5.static.flickr.com/4075/4853780771_bbf132e129_o.gif' width='250'/></a>

    I really have very little knowledge about codes except the above basic html so have no clue as to whether it would indeed be javascript or php or other that I would need. Have you any ideas?

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
  •