Jmail的属性和方法


属性: 
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" 
JMail.MimeVersion = "1.0"

Priority : Integer 
(v3.0) 
邮件的优先级,可以范围从1到5。 
越大的优先级约高,比如,5最高,1最低 
一般设置为3 
JMail.Priority = 3

Recipients : String 
(v3.0) 
这个信息的接收者只有只读属性 
Response.Write( "" + JMail.Recipients + "" )

ReplyTo : String 
(v3.0) 
指定一个可选的回信地址 
JMail.ReplyTo = "president@dimac.net"

ReturnReceipt : Boolean 
(v3.0) 
是否按寄件人的要求回信,默认是"false" 
JMail.ReturnReceipt = true

Sender : String 
(v3.0) 
邮寄的地址 
JMail.Sender = "batman@dimac.net"

SenderName : String 
(v3.0) 
收信人姓名 
JMail.SenderName = "Bat man"

ServerAddress : String 
(v3.0) 
SERVER的地址。可以有很多的SERVER地址,后可跟端口号 
JMail.ServerAddress = "mail.mydom.net; mail2.mydom.net:2500"

Silent : Boolean 
(v3.0) 
设置成TRUE后JMAIL将检查所有的邮件在 JMail.execute() 执行后 
返回真或假根据信件发送的成功与否depending on the success of the operation

JMail.silent = true

SimpleLayout : Boolean 
(v3.0) 
设置成TRUE减少JMAIL产品头数量 
JMail.SimpleLayout = true

Subject : String 
(v3.0) 
邮件的标题。 
JMail.Subject = "Dimac rocks big time!"


UsePipelining : Boolean 
(v3.0) 
管道的支持。 
JMail.Pipelining = false


JMAIL的方法 
AddAttachment( FileName, [ContentType] ) 
(v3.0) 
加入一个附件 
JMail.AddAttachment( "c:\\autoexec.bat" );

AddHeader( XHeader, Value ) 
(v3.0) 
加入一个头信息 
JMail.AddHeader( "Originating-IP","193.15.14.623" );

AddNativeHeader( Header, Value ) 
(v3.0) 
加入一个头信息 
JMail.AddNativeHeader( "MTA-Settings", "route" );

AddRecipient( Email ) 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值