jmail发送邮件

来源:百度知道 编辑:UC知道 时间:2024/06/03 01:31:46
我用jmail发送邮件,用企业邮箱,但是到jmail.send("smtp.mail.chinatournet.com")处就有问题,是什么原因?

不要加smtp吧?一般企业邮箱的服务器,不论发送,还是接收都是mail.xxx.com

=== Jmail的使用指南 ===

--------------------------------------------------------------------------------

(1)Body(信件正文) : 字符串
如:JMail.Body = "这里可以是用户填写的表单内容,可以取自From。"

(2)Charset(字符集,缺省为"US-ASCII") : 字符串
如:JMail.Charset = "US-ASCII"

(3)ContentTransferEncoding : 字符串
指定内容传送时的编码方式,缺省是"Quoted-Printable"
如:JMail.ContentTransferEncoding = "base64"

(4)ContentType(信件的contentype. 缺省是"text/plain") : 字符串
如果你以HTML格式发送邮件, 改为"text/html"即可。
如:JMail.ContentType = "text/html"

(5)Encoding : 字符串
设置附件编码方式(缺省是"base64)。 可以选择使用的是"base64", "uuencode" or "quoted-printable"
如:JMail.Encoding = "base64"

(6)Log(Jmail创建的日志,前提loging属性设置为true,见下面) : 字符串
如:使用Response.Write( JMail.Log )语句列出日志信息。

(7)Logging(是否使用日志)