GetMailAttribute()
Syntax
Result$ = GetMailAttribute(#Mail, Attribute)Description
Return the specified #Mail attribute. 'Attribute' may be one of the following values:#PB_Mail_From : Get the 'From' attribute, set with CreateMail(). #PB_Mail_Subject: Get the 'Subject' attribute, set with CreateMail(). #PB_Mail_XMailer: Get the 'X-Mailer' attribute (if any) #PB_Mail_Date : Get the 'Date' attribute (if any) #PB_Mail_Custom : Get customs fields (if any)Example:
InitNetwork() If CreateMail(0, "test@purebasic.com", "Hello") Debug GetMailAttribute(0, #PB_Mail_From) ; Will print "test@purebasic.com" Debug GetMailAttribute(0, #PB_Mail_Subject) ; Will print "Hello" EndIfSetMailAttribute() may be used to change the #Mail attributes.
Supported OS
All