Log in

View Full Version : How to format a MAILTO email?



robertsaunders
03-18-2006, 03:08 PM
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

jscheuer1
03-18-2006, 03:16 PM
<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 (http://home.comcast.net/~ansiguy/emailen1.htm) it.

robertsaunders
03-18-2006, 03:21 PM
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?

Twey
03-18-2006, 03:30 PM
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.

jscheuer1
03-18-2006, 03:45 PM
http://www.outfront.net/tutorials_02/adv_tech/mailto.htm

robertsaunders
03-23-2006, 06:33 PM
http://www.outfront.net/tutorials_02/adv_tech/mailto.htm


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