Thread: E-Mail Subject Line Auto Fill
Results 1 to 4 of 4
11-07-2008, 05:48 AM #1
E-Mail Subject Line Auto Fill
I'm building a site and have and e-mail response button. What I would like to know is when the button is clicked and it launches your default e-mail application and a new mail, it automatically enters the e-mail address I specify but is there a way of automatically entering specific text into the subject line?
11-07-2008, 08:55 AM #2
Re: E-Mail Subject Line Auto FillCode:
<a href="mailto:email_address?subject=This is the subject line">Mail</a>
Hope that helps.
11-07-2008, 02:58 PM #3
Re: E-Mail Subject Line Auto Fill
I don't think that the above code will work. The URL will only work if you are using server-side scripts, and then it will need to be altered anyway to remove the extra question mark. From your description, I assume you are using a mailto link.
Use the following format:
<a href="mailto:YOUR_EMAIL_ADDRESS?subject=Comments from MailTo Syntax Page">
Last edited by HTML; 03-08-2012 at 04:43 PM.
11-07-2008, 09:22 PM #4