RSS
people

html mailto command

Share/Save/Bookmark

Today, due to some task’s requirement, I need to play around with the html mailto command.
As I know, the mailto command is just prompt up the visitor email client & auto fill in the To field.

After some research, I found that actually the mailto command is more power than what I though.

Below is some example:

Simple mail to

<a href="mailto:myhow2guru@example.com">Simple mail to</a>

Mail to multiple recipients

<a href="mailto:myhow2guru@example.com,myhow2guru1@example.com.com">Mail to multiple recipients</a>

Mail to with subject

<a href="mailto:myhow2guru@example.com?subject=Myhow2guru Tutorial">Mail to with subject</a>

Mail to with a copy (CC)

<a href="mailto:myhow2guru@example.com?cc=myhow2guru1@example.com.com">Mail to with a copy (CC)</a>

Mail to with a Blind Copy (BCC)

<a href="mailto:myhow2guru@example.com?bcc=myhow2guru1@example.com.com">Mail to with a Blind Copy (BCC)</a>

Mail to with email content

<a href="mailto:myhow2guru@example.com?body=I like this website">Mail to with email content</a>

5 Responses to “html mailto command”

  1. james Says:

    is it possible to send a mail with both a cc and subject?

  2. james Says:

    oh nvm, i figured out.

    type whatever here

    thanks for ur tips!

  3. h2Guru Says:

    That’s fine.
    Hope its help you.
    Cheer~!

  4. David Says:

    Is there a way to default the e-mail to plain text? As opposed to rich or HTML. Thanks.

  5. h2Guru Says:

    Hi David
    For my understanding, it is not way to do so…
    Unless you are composing the email inside the form & require it send it as plain text format.

Leave a Reply