Jump to content

complex mailto link


mltb210

Recommended Posts

if you add the url string &message=xxxxxxxx you can make what ever you want in there. The big BUT is that it needs to be URL encoded.So, you might say message=Thank you for coming.you would have to code it like this message=Thank%20you%20for%20coming.If you want HTML in there, the you will need to escape all the < and > symbols - theoritically, it should work.But its much easier to use a server side scripting language to send HTML enhanced messages - especially since they can be multi-part.

Link to comment
Share on other sites

i would like to go one step further and INCLUDE a LINK within the BODY. is that possible? thank you.
Yes it's possible, this will insert a link into the body of an email created with an anchor
<a href="mailto:scott@w3schools.com?subject=W3schools Is Cool&body=Hi, I found this website and thought you might like it http://www.w3schools.com">tell a friend</a>

Link to comment
Share on other sites

that code INCLUDES the url in the message. however, it doesn't make it a link. IS IT POSSIBLE TO MAKE A LINK WITHIN THE MESSAGE?for example, the message would look like this:Hi, I found this website and thought you might like it.thanks for your help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...