Html Tips and Tricks

Monday, May 17, 2004

The Nice Mailto Trick

If you ever want someone to e-mail you, than mailto is your answer!
When you insert this command into your html code, a link will be created.
Whoever clicks on this link will have their default mail client pop up!
Look at this code:
<A HREF="mailto:?">Send me an email</A>
This is how it looks to the viewer:
Send me an email
We can also before the question mark, type in the address which the viewer is to send the e-mail to, and look at what happens.
<A HREF="mailto:nilsmolina@comcast.net?">Send me an email</A>
Send me an e-mail
We can also add something to the subject line, too.
Look at what happens. We have added subject=This text is on the subject line&
<A HREF="mailto:nilsmolina@comcast.net?subject=This text is on the subject line&">Send me an email</A>
Send me an e-mail
OK, finally, we can even add text in the actual e-mail!
Look at what happens as we add body=This text is in the e-mail
<A HREF="mailto:nilsmolina@comcast.net?subject=This text is on the subject line&body=This text is in the e-mail">Send me an email</A>
Send me an e-mail
Wow, isn't that nice.
Yes, it is the nice mailto trick.


NEED EXTRA HELP? HAVE A SUGGESTION? HAVE SOMETHING TO ADD? PLEASE POST COMMENTS WHILE LOOKING AT ALL THESE USEFUL HTML TIPS AND TRICKS. THANK YOU!

10 Comments:

Post a Comment

<< Home


Hit Counter