Getting subject added to the mailto command.

Issue

Getting subject added to the mailto command.

Solution

Add ?subject=testing out mailto to the mailto tag. For example, the complete tag would look similar to the below example.

<A HREF="mailto:test@example.com?subject=testing out mailto">First Example</A>

Users can also add text into the body of the message by adding &body=body text to the end of the tag as shown in the below example.

<A HREF="mailto:test@example.com?subject=testing out mailto&body=Just testing">Second Example</A>

In addition to body, a user may also type &cc= or &bcc= to fill out the CC and BCC fields.

  • Additional information about the mailto protocol can be found on RFC 2368.

Examples

First Example

Second Example

  • Category
  • HTML Q&A
  • Related pages
  • HTML Help
  • Solved?
  • Were you able to locate the answer to your question?