Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / %SYS namespace / %Net.MailMessage
Private  Storage   

%Net.MailMessage


serial class %Net.MailMessage extends
%Net.MailMessagePart

Send a SMTP mail message or receive MIME message using POP3.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
9 5


Summary


Properties
Bcc BinaryData Cc Charset
ContentTransferEncoding ContentType Date Debug
Dir FileName From Headers
InlineAttachment Is7bit IsAlternative IsBase64
IsBinary IsHTML IsMultiPart MessageSize
MultiPartType PartIndex Parts ReplyTo
Sender Subject TextData To

Methods
%%OIDGet %AddToSaveSet %AddToSyncSet %BindExport
%BuildObjectGraph %ClassIsLatestVersion %ClassName %Close
%ConstructClone %Delete %DeleteId %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends %GetParameter
%GetSwizzleObject %IncrementCount %IsA %IsModified
%IsNull %JournalObject %New %NormalizeObject
%ObjectIsNull %ObjectModified %OnBeforeAddToSync %OnDetermineClass
%OnNew %Open %OpenId %OriginalNamespace
%PackageName %RemoveFromSaveSet %ResolveConcurrencyConflict %SerializeObject
%SetModified %SyncObjectIn %SyncTransport %ValidateObject
AttachEmail AttachFile AttachNewMessage AttachStream
CharsetSet ContentTransferEncodingSet GetAttribute GetFileName
GetLocalDateTime GetUTCDateTime GetUTCSeconds HToSeconds
Is7bitGet Is7bitSet IsAlternativeGet IsAlternativeSet
IsBase64Get IsBase64Set LogicalToOdbc OdbcToLogical
SecondsToH


Properties


• property Bcc as list of %String(MAXLEN=8000);
Bcc for message, list of names to which message will be sent (SMTP) or was sent (POP3)
• property Cc as list of %String(MAXLEN=8000);
Cc for message, list of names to which message will be sent (SMTP) or was sent (POP3)
• property Date as %String;
The date/time that the message was retrieved as reported by POP3, or date/time to be included in the message sent via %Net.SMTP. If Date is not specified, then %Net.SMTP will set it to the current date and time.
• property From as %String(MAXLEN=1000);
Who the message is from
• property MessageSize as %Integer;
The total length of the message. The MessageSize property is not set for attached emails.
• property ReplyTo as %String(MAXLEN=1000);
The Reply-To header field of the message
• property Sender as %String(MAXLEN=1000);
Who actually sent the message
• property Subject as %String(MAXLEN=1000);
Subject of message
• property To as list of %String(MAXLEN=8000);
To for message, list of names to which message will be sent (SMTP) or was sent (POP3)

Methods


• method GetLocalDateTime() as %String
Return the date/time that the message was retrieved converted to local time in $H format. An empty string is returned if the date format is invalid.
• method GetUTCDateTime() as %String
Return the date/time that the message was retrieved converted to UTC in $H format. An empty string is returned if the date format is invalid.
• method GetUTCSeconds() as %Integer
Return the date/time that the message was retrieved converted to UTC in seconds since 12/31/1840. An empty string is returned if the date format is invalid.
• classmethod HToSeconds(h As %String) as %Integer
Convert $h format to the number of seconds since 12/31/1840.
• classmethod SecondsToH(seconds As %Integer) as %String
Convert the specified number of seconds since 12/31/1840 to $h format.