HTML Mailto 用法

    3
    111

    HTML mailto 语法

    前面讲了HTML 邮件链接,现在我再进一步讲解一下mailto的用法.

    mailto四个常用的参数

    • subject — 代表邮件的标题
    • body — 代表邮件的内容
    • cc — 代表一个抄送对象
    • bcc — 代表一个暗送对象

    mailto语法

    mailto:URL?参数1=内容&参数2=内容&参数3=内容

    通过”&”符号,可以连接多个条件.

    mailto示例

    mailto:yao@163.com?subject=草窟人生

    定义了邮件的标题为草堂网页设计


    mailto:yao@163.com?subject=HTML&body=草堂网页设计

    定义了邮件的标题为草堂网页设计与内容为草堂网页设计

    mailto:yao@163.com?cc=yao@sina.com&bcc=yao@gmail.com

    定义了邮件的抄送对象为yao@sina.com,邮件的暗送对象为yao@gmail.com

    3 COMMENTS

    1. I’ve learn somje just rignt stuff here. Certainly vaue bookmarking for revisiting.
      I surprise how much attempt you set to make such a wonderful informative
      website.

    2. facebook find love –
      Hi to all, how is all, I think every one is getting more
      from this web page, and your views are pleasant for new visitors.

    3. facebook find love –
      Great blog here! Also your site loads up very fast!
      What host are you using? Can I get your affiliate link to your host?
      I wish my website loaded up as fast as yours lol

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here