Dave, I have a email link on a web page. Set so when you click it, the email opens with the address and subject line populated. I want to have the cursor OR Hello show up in the Body of the email. I am told ‘ONLY’ with forms but I am sure I did this years ago. Here is what I have so far:
“mailto:[email protected]?Subject=Dear Kirk”
Do you know the code to finish it off?
First off, I have two articles worth reading in this regard: Avoid spam by omitting mailto links and hiding email addresses in HTML forms.
If you still want to use a mailto: link, then it turns out that there’s quite a rich language of different options you can specify to get the mailto link to work just as you desire.
According to what I found out about mailto links, you can specify more than one recipient by listing them as a comma-separated list (skip spaces, though), like this: mailto:[email protected],[email protected],[email protected]. Easily done.
Now, for anything that would be passing additional information, you need to use the form ?name=value and if you specify more than one variable, you need to separate them with &, just as if you were specifying a method=”get” form, actually.
So, to specify the subject, you already know that you use subject=something, but you can also specify the “Cc” or “Bcc” recipients with, logically enough, cc=[email protected], or bcc=[email protected].
Finally, and this is what you asked about in the first place, to specify the body of the message, use body=. In fact, you can apparently specify more than one line of the body by using body= more than one time in the URL. So, putting it all together:
Try that, see how it works for you!