Results 1 to 6 of 6

Thread: How to format a MAILTO email?

  1. #1
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default How to format a MAILTO email?

    I wasn't sure if this would be an HTML question, so I'm posting it here.

    My problem is that I want to add a link to a website which causes an email to appear (as it does with the mailto tag) but I want to be able to format the text in the subject field.

    Is this possible?

    Any idea?

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    HTML Code:
    <a href="mailto:jsc@some.com?subject=Howdy!">Say Hello</a>
    If you are not already getting tons of spam email at the address you wish to use, consider encrypting it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply. I think maybe I didn't make my question very clear. What I want to be able to do is to use the mailto tag as you have above, but I want to be able to FORMAT the text in the subject. For example, I might want the email to read:

    "Dear ...,

    How are you?

    Yours sincerely,

    Rob"

    I don't want it to appear as:

    "Dear ..., How are you? Yours sincerely, Rob"

    Is this possible?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can usually add HTML into the email body without any trouble, although this depends on how the user's mail client is set up. You cannot, however, use HTML in the subject.
    Last edited by Twey; 03-18-2006 at 03:53 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  6. #6
    Join Date
    Feb 2005
    Posts
    71
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default


    Thanks for the replies guys. The code given for a new line in the body at the above address didn't seem to work but '%0A' seems to work well with outlook express. (Found this at http://www.ssi-developer.net/design/mailto.shtml)

    Thanks again for your help.

    This forum is great!

    Rob

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
  •