SetMailAttribute()
语法
SetMailAttribute(#Mail, Attribute, Value$)概要
Change the specified mail attribute with the new value.
参数
The mail to use. Attribute The attribute to change. It may be one of the following values: #PB_Mail_From : Change the 'From' attribute, set with CreateMail(). #PB_Mail_Subject: Change the 'Subject' attribute, set with CreateMail(). #PB_Mail_XMailer: Change the 'X-Mailer' attribute (not sent by default). #PB_Mail_Date : Change the 'Date' attribute (default is the computer date). #PB_Mail_Custom : Add customs fields (can be multi-line).Value$ The new value for the attribute.
返回值
无.
示例
InitNetwork() If CreateMail(0, "test@purebasic.com", "Hello") SetMailAttribute(0, #PB_Mail_XMailer, "PureMailer") Debug GetMailAttribute(0, #PB_Mail_XMailer) ; Will print "PureMailer" EndIf
参阅
GetMailAttribute(), CreateMail()
已支持操作系统
所有