欢迎光临
我们一直在努力

W3 Jmail 参考说明

建站超值云服务器,限时71元/月

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格式发送邮件, 改为"text/html"即可。

如:jmail.contenttype = "text/html"

deferreddelivery : date

(v3.0)

设置延期发送. 如果邮件服务器支持的话,消息到了这个时间才会发送

如:(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发送了然后返回,或者缓冲这条消息然后在后台发送。

然而设置了这个属性,你就不能控制错误信息。

注意:如果选择了这个选项,属性serveraddress将无效,lazysend将通过dsn查询决定邮件服务器,

在一些设置里面,这可能有问题。

如:jmail.lazysend = true;

log : string

(v3.0)

jmail创建的日志,如果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)

优先级. 范围在1-5之间

1 高优先级. 有些邮件程序称之为紧急

2 也是高优先级

3 普通优先级

4 低优先级

5 最低的优先级

如: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)

指定邮件服务器的地址。可以指定多个服务器,用分号点开。可以指定端口号。

如果serveraddress保持空白,jmail会尝试解决远程邮件服务器,然后直接发送到服务器上去。

如:jmail.serveraddress = "mail.mydom.net; mail2.mydom.net:2500"

silent : boolean

(v3.0)

如果设置为true,jmail不会抛出例外错误. jmail.execute() 会根据操作结果返回true或false

如:jmail.silent = true

simplelayout : boolean

(v3.0)

设置为true,减少jmail产生的header信头

如:jmail.simplelayout = true

subject : string

(v3.0)

设定消息的标题

如:jmail.subject = "dimac rocks big time!"

usepipelining : boolean

(v3.0)

overrides if jmail should use pipelining on a server that supports it.

如:jmail.pipelining = false

addattachment( filename, [contenttype] )

(v3.0)

添加文件附件到信件

如:jmail.addattachment( "c:\\autoexec.bat" );

addcustomattachment( filename, data )

(v3.0)

添加自定义附件. this can be used to attach "virtual files" like a generated text string or certificate etc.

如:jmail.addcustomattachment( "readme.txt", "contents of file" );

addheader( xheader, value )

(v3.0)

添加用户定义的x-header到message

如:jmail.addheader( "originating-ip","193.15.14.623" );

addnativeheader( header, value )

(v3.0)

添加信头

如:jmail.addnativeheader( "mta-settings", "route" );

addrecipient( email )

(v3.0)

增加收件人

如:jmail.addrecipient( "info@dimac.net" );

addrecipientbcc( email )

(v3.0)

增加密件收件人

如:jmail.addrecipientbcc( "someone@somedomain.net" );

addrecipientcc( email )

(v3.0)

增加抄送收件人

如:jmail.addrecipientcc( "someone@somedomain.net" );

addrecipientex( email, name )

(v3.0)

增加一个带名字的收件人

如:jmail.addrecipientex( "info@dimac.net", "dimac info" );

addurlattachment( bstrurl, bstrattachas, [bstrauth] )

(v3.0)

下载并添加一个来自url的附件. 第二个参数"attachas", 被用来指定信件收到后的文件名. 第3个可选参数是用来可选的www-鉴定.

如:jmail.addurlattachment( "http://download.dimac.net/jmail/jmail.exe", "jmail.exe" )

appendbodyfromfile( filename )

(v3.0)

将一个文件内容追加到正文后

如:jmail.appendbodyfromfile( "c:\\mytext.txt" );

appendtext( text )

(v3.0)

追加信件的正文内容

如:jmail.appendtext( "text appended to message body" );

clearattachments()

(v3.0)

清除附件列表

如:jmail.clearattachments();

clearcustomheaders()

(v3.0)

清除所有自定义的信头

如:jmail.clearcustomheaders();

clearrecipients()

(v3.0)

清除收件人列表

如:jmail.clearrecipients();

close()

(v3.0)

强制jmail关闭缓冲的与邮件服务器的连接

如:jmail.close();

execute() : boolean

(v3.0)

执行邮件的发送

如:jmail.execute();

extractemailaddressesfromurl( bstrurl, [bstrauth] )

(v3.0)

从一个url下载和添加email地址

如:jmail.extractemailaddressesfromurl( "http://duplo.org/generateemaillist.asp" );

getmessagebodyfromurl( bstrurl, [bstrauth] )

(v3.0)

清除message的正文,并用url的内容替换。contenttype 会自动设置成url的contentyp。第二参数(login and password)是可选的。

如:jmail.getmessagebodyfromurl( "http://duplo.org/", "login:password" )

logcustommessage( message )

(v3.0)

将用户自定义消息加入jmail日志. 只有属性loging设置为true时,这项功能才能起作用

如:jmail.logcustommessage( "hello world" );

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » W3 Jmail 参考说明
分享到: 更多 (0)