一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

Jmail的属性和方法

时间:2008-01-12 编辑:简简单单 来源:一聚教程网

属性:
Body : String
(v3.0)
E-Mail的主体
JMail.Body = "Hello world"
Charset : String
(v3.0)
设定邮件的字符集,默认为"US-ASCII"
JMail.Charset = "US-ASCII"
ContentTransferEncoding : String
(v3.0)
指定内容编码, 默认为 "Quoted-Printable"
JMail.ContentTransferEncoding = "base64"
ContentType : String
(v3.0)
这个邮件的头设置, 默认为 "text/plain" 能设
置成你需要的任何情况。
 你想发送HTML信息,改这个头文件为 "text/html"
JMail.ContentType = "text/html"
DeferredDelivery : Date
(v3.0)
设置时间。
 如果MAILSERVER服务器支持,可以设置何时发送邮件。
JMail.DeferredDelivery = new Date( 2000, 02, 17 ).getVarDate();
Encoding : String
(v3.0)
This can be used to change the default Attachment encoding from base64. Valid options are
"base64", "uuencode" or "quoted-printable"
JMail.Encoding = "base64"
ErrorCode : Integer
(v3.0)
报错误信息,如果JMail.silent被设置成true
Response.Write( JMail.ErrorCode )
ErrorMessage : String
(v3.0)
报错误信息,如果JMail.silent被设置成true
Response.Write( JMail.ErrorMessage )
ErrorSource : String
(v3.0)
报错误信息,如果JMail.silent被设置成true
Response.Write( JMail.ErrorSource )
ISOEncodeHeaders : Boolean
(v3.0)
头信息代码按照iso-8859-1字符设置。
 The default is true.
JMail.ISOEncodeHeaders = false
Lazysend : Boolean
(v3.0)
这个属性是将邮件放入缓冲直至发出为止,的不到任何的错误信息
JMail.LazySend = true;
Log : String
(v3.0)
当loging被设置后,这个LOG被JMAIL生成
Response.Write( JMail.Log )
Logging : Boolean
(v3.0)
能/不能登陆用JMAIL
JMail.Logging = true
MailDomain : String
(v3.0)
可以忽略 EHLO/HELO 状态对你的mailserver
JMail.Maildomain = "hello.world.com"
MimeVersion : String
(v3.0)
专门的 mime 版本. The default is "1.0"

热门栏目