serial class %Net.MailMessage
extends %Net.MailMessagePart
Send a SMTP mail message or receive MIME message using POP3.
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)
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.