W3 Jmail使用說明中文版
jmail.smtpmail
Body : String
(v3.0)
信件體,正文,使用AppendText追加內容
如: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)
信件的contentype. 缺省是"text/plain",但是可以設置為其他你想要的類型.
如果你以HTML格式發(fā)送郵件, 改為"text/html"即可。
如:JMail.ContentType = "text/html"
DeferredDelivery : Date
(v3.0)
設置延期發(fā)送. 如果郵件服務器支持的話,消息到了這個時間才會發(fā)送
如:(Javascript)JMail.DeferredDelivery = new Date( 2000, 02, 17 ).getVarDate();
Encoding : String
(v3.0)
這個屬性可以用來改變附件編碼方式(缺省是"base64). 可以選擇使用的是"base64", "uuencode" or "quoted-
printable"
如:JMail.Encoding = "base64"
ErrorCode : Integer
(v3.0)
如果JMail.silent設置為true,ErrorCode包含的是錯誤代碼
如:Response.Write( JMail.ErrorCode );
ErrorMessage : String
(v3.0)
如果JMail.silent設置為true,包含的是錯誤信息
如:Response.Write( JMail.ErrorMessage );
ErrorSource : String
(v3.0)
Contains the error source if JMail.silent is set to true
如:Response.Write( JMail.ErrorSource );
ISOEncodeHeaders : Boolean
(v3.0)
是否將信頭編碼成iso-8859-1字符集. 缺省是true
如:JMail.ISOEncodeHeaders = false
Lazysend : Boolean
(v3.0)
這個屬性指定Jmail是否一直等到mail發(fā)送了然后返回,或者緩沖這條消息然后在后臺發(fā)送。
然而設置了這個屬性,你就不能控制錯誤信息。
注意:如果選擇了這個選項,屬性ServerAddress將無效,lazysend將通過dsn查詢決定郵件服務器,
在一些設置里面,這可能有問題。
如:JMail.LazySend = true;
Log : String
(v3.0)
Jmail創(chuàng)建的日志,如果loging屬性設置為true
如:Response.Write( JMail.Log );
Logging : Boolean
(v3.0)
是否使用日志
如:JMail.Logging = true
MailDomain : String
(v3.0)
This can be used to override the EHLO/HELO statement to your mailserver
如:JMail.Maildomain = "hello.world.com"
MimeVersion : String
(v3.0)
指定mime版本。缺省是"1.0"
如:JMail.MimeVersion = "1.0"
Priority : Integer
(v3.0)
優(yōu)先級. 范圍在1-5之間
1 高優(yōu)先級. 有些郵件程序稱之為緊急
2 也是高優(yōu)先級
3 普通優(yōu)先級
4 低優(yōu)先級
5 最低的優(yōu)先級
如:JMail.Priority = 3
Recipients : String
(v3.0)
只讀屬性,返回所有收件人
如:Response.Write( "" + JMail.Recipients + "" );
ReplyTo : String
(v3.0)
指定一個可選的回信地址
如:JMail.ReplyTo = "">president@dimac.net"
ReturnReceipt : Boolean
(v3.0)
指定是否發(fā)件人需要一個回復收據. 缺省是false
如:JMail.ReturnReceipt = true
Sender : String
(v3.0)
指定發(fā)件人的郵件地址
如:JMail.Sender = ""
SenderName : String
(v3.0)
指定發(fā)件人的姓名
如:JMail.SenderName = "Bat man"
ServerAddress : String
(v3.0)
指定郵件服務器的地址??梢灾付ǘ鄠€服務器,用分號點開??梢灾付ǘ丝谔?。
如果serverAddress保持空白,JMail會嘗試解決遠程郵件服務器,然后直接發(fā)送到服務器上去。
如:JMail.ServerAddress = "mail.mydom.net; mail2.mydom.net:2500"
Silent : Boolean
(v3.0)
如果設置為true,JMail不會拋出例外錯誤. JMail.execute() 會根據操作結果
更多信息請查看IT技術專欄