Posted By: xarzu ()
Posted On: 02/24/2008 12:24 pm
|
I am trying to use the tag "mailto" in an HTML file to prompt the user to email me. Specifically, I want to have the subject and the body of the email message already filled in when the user sends me the email.
So far, I have managed to have a hyperlink where the body is already filled in:
| CODE: |
<a href="mailto::username@gmail.com?body='test'">this works</a> | I have also managed to have a hyperlink where the subject line is already filled in:
| CODE: |
<a href="mailto:usernamegmail.com?subject='the subject'">this works too</a> |
But I have yet to figure out how do combine the two:
| CODE: |
<a href="mailto::username@gmail.com?subject='the subject and
the body'?body='test'">help</a> |
Does anyone know how to do this?
|
|
Posted By: g1smd (Moderator)
Posted On: 02/24/2008 01:11 pm
|
Once you implement this, every spammer in the world will be able to collect your email address off your site, and you'll receive hundreds of messages per hour...
|
|
Posted By: Prowler (Moderator)
Posted On: 02/26/2008 01:07 am
|
Easy xarzu. Try this:
As g1smd points out you will end up with tons of spam mails to your email address. Opt for a form page and use a server side script to send the mail to you after a bit of error checking.
|
|
|