仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1390|回复: 18
打印 上一主题 下一主题

[学习教程] ASP编程:JMAIL属性、办法大全

[复制链接]
若天明 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-3 23:34:05 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
对于中小型web应用来说,php有很强的竞争力,linux+apache+mysql+php(lamp)的组合几乎可以胜任绝大多数网站的解决方案,对于大型应用来讲,对于系统架构要求更高,需要有成熟的框架支持,jsp的struts是个不错的框架,国内介绍它的资料也非常多,应用逐渐广泛起来。asp就不用说了,jmail   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 )
(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" );

AppendBodyFromFile( FileName )
(v3.0)
将文件的内容发送出去
JMail.AppendBodyFromFile( "c:\\mytext.txt" );

AppendText( Text )
(v3.0)
添加附件
JMai</p>  缺点:正版成本价格贵(盗版就不说了)、不够安全,大多数服务器用windows系统,没有linux安全
若天明 该用户已被删除
沙发
 楼主| 发表于 2015-2-10 08:53:45 | 显示全部楼层
它可通过内置的组件实现更强大的功能,如使用A-DO可以轻松地访问数据库。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-15 03:12

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表