<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<!--- server:发邮件的用户stmp的服务器IP.发邮件用户名和密码必须正确.收邮件人的邮箱也必须正确才能确保收到邮件--->
<cfmail TO="2283070671@qq.com,331943150@qq.com,developerFBI@126.com" FROM="941867223@qq.com" type="html" SUBJECT="test aimoo's mail
post function" username="942867433@qq.com" password="Tsa384745..\\" SERVER="119.147.74.45" port="25">
<cfmailparam name="MIME-Version" value="1.0">
邮件内容
</cfmail>
<cfoutput>success!</cfoutput>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<!--- server:发邮件的用户stmp的服务器IP.发邮件用户名和密码必须正确.收邮件人的邮箱也必须正确才能确保收到邮件--->
<cfmail TO="2283070671@qq.com,331943150@qq.com,developerFBI@126.com" FROM="941867223@qq.com" type="html" SUBJECT="test aimoo's mail
post function" username="942867433@qq.com" password="Tsa384745..\\" SERVER="119.147.74.45" port="25">
<cfmailparam name="MIME-Version" value="1.0">
邮件内容
</cfmail>
<cfoutput>success!</cfoutput>
</body>
</html>
CFMail发送HTML邮件示例
本文档展示了如何使用CFMail标签发送包含HTML格式的邮件。邮件从指定的SMTP服务器发出,并发送给多个接收者。示例代码中包含了邮件发送的基本配置及简单的成功提示输出。
892

被折叠的 条评论
为什么被折叠?



