如何解决用邮件发送html5作品乱到现象

html-css018

如何解决用邮件发送html5作品乱到现象,第1张

html静态页面要想实现邮件发送功能,需要借助ajax接口调用发邮件的程序才可以。

页面代码如下:

<pre name="code" class="html"><a href="Mailto:[email protected][email protected][email protected]&Subject=Hello&Body=你好">给我发邮件</a></pre>

<pre></pre>

参数说明:

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

</p>

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

CC:抄送地址;</p>

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

BCC:密件抄送地址;</p>

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

Subject:主题;</p>

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

Body:邮件内容。</p>

<p style="color:rgb(51,51,51)font-family:Arialfont-size:14pxline-height:26px">

注:多个邮件地址用""隔开。</p>

第一种

<input type="email">

第二种:正则表达式

var email = '[email protected]'

var email_reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/

if( email_reg.test( email ) ) {

    alert('邮箱格式正确')

} else {

    alert('邮箱格式错误')

}

广告的一种表现形式。根据查询相关公开信息显示,这是邮政银行的一种广告。H5就是广告的一种表现形式,大多是在微信上宣传营销使用的,而HTML5是第五代HTML的标准,可以说,H5都是基于HTML5实现的,包括目前我们看到的大部分网页,基本上所有H5都遵循HTML5这个规范,不然就会出现问题。