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>
    No matches

5 Responses to “html mailto command”

  1. james said:
    May 27th, 2009 at 3:14 pm

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

    1. james said:
      May 27th, 2009 at 3:20 pm

      oh nvm, i figured out.

      type whatever here

      thanks for ur tips!

      1. h2Guru said:
        May 27th, 2009 at 3:25 pm

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

        1. David said:
          May 29th, 2009 at 5:28 am

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

          1. h2Guru said:
            May 29th, 2009 at 8:44 pm

            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