182 bool importance =
False;
183 bool deliveryReceipt =
False;
184 bool readReceipt =
False;
198 *
string bodyContentType;
201 list<Attachment> attachments();
261 list<string>
addTO(
string recipient);
270 list<string>
addCC(
string recipient);
279 list<string>
addBCC(
string recipient);
291 list<string>
getTO();
295 list<string>
getCC();
519 static string doHeaderValue(
string hdr,
string val,
string eol =
"\r\n",
bool encode =
True);
564 static string encodeData(data data,
string mime,
string disp,
string enc);
573 static string getLine(reference<string> msg, reference<int> pos);
578 list<string> getEnvelopeList();
629 string getTransferEncoding();
637 add(MultiPartMixedMessage mpm);
static hash parseHeader(string hdr, bool decode=True)
parses the given string representing a header line and returns a single key - value hash for the head...
addBody(string str)
concatenates a string to the message body
string getHeaderString(string eol="\", bool encode=True)
returns a string of the message headers
list< Attachment > getAttachments()
returns a list of Attachment objects for the Message
addHeader(string hdr)
adds a header to the Message
class representing a MIME part of a Message
Definition: MailMessage.qm.dox.h:591
const Encodings
a list of all known content encoding schemes encodings
Definition: MailMessage.qm.dox.h:123
static string encodeTransferData(data data, string enc, reference< hash > hdr)
returns a string of message data according to the encoding passed
*string getSender()
returns the sender's address in display format
string toLine()
returns a single line string summarizing the Message
The Message class holds the information for a single email Message.
Definition: MailMessage.qm.dox.h:169
string make_base64_string(string str, softint maxlinelen=-1)
static *string getEmailAddress(string str)
fetch the email address out of a sender/rcpt string
softlist getHeader()
returns the current Message headers as a list of strings
string getSubject()
returns the subject of the Message
list< string > getTO()
returns the list of "To:" addresses
bool sendPossible()
returns True if the message can be sent, False if not
static string doHeaderValue(string hdr, string val, string eol="\", bool encode=True)
encodes a header value according to the parameters
list< string > getCC()
returns the list of "CC:" addresses
list< string > addBCC(string recipient)
add a recipient to the Message's bcc list
const ContentTransEncBase64
attach(string name, string mime, data att, string enc=EncDefault, *hash hdr)
creates an attachment for the Message
string replace(string str, string source, string target, int start=0, int end=-1)
*hash getHeaders()
returns the current Message headers as a hash
const EncQuotedPrintable
"quoted-printable" content transfer encoding
Definition: MailMessage.qm.dox.h:120
bool important()
returns the current importance setting
class representing a MIME Attachment for the Message
Definition: MailMessage.qm.dox.h:657
*data getBody()
returns the Message body
list< Part > getParts()
returns a list of non-attachment Part objects for the Message
constructor(string n_sender, string n_subject)
creates a Message object from the arguments given; this variant of the constructor is designed to be ...
bool receiptRead()
returns the current read delivery receipt setting
string mpboundary
create a different multipart boundary string every time based on the current time ...
Definition: MailMessage.qm.dox.h:213
static string checkEncoding(data data, string enc, bool noneok=False)
checks the data against the encoding and returns the new encoding (if the encoding is EncDefault for ...
string serialize()
serializes the message to a string that can be sent to an SMTP server, for example ...
const EncBase64
base-64 content transfer encoding
Definition: MailMessage.qm.dox.h:117
string getBodyTransferEncoding()
returns the transfer encoding for the mssage body (see Message Encodings for possible values) ...
list< string > getRecipients()
return all the email addresses the message will be sent to, a combination of the "To:", "CC:", and "BCC:" lists
const ContentTransEncQuotedPrintable
static string getLine(reference< string > msg, reference< int > pos)
returns the first "\r\n" terminated line from the argument, updates the byte position argument ...
setHeader(string hdr)
sets/replaces the Message headers
setBody(data n_body, string n_enc=EncDefault, *string n_content_type)
sets or replaces the Message body
const EncNone
no content transfer encoding (not recommended as SMTP servers break up long lines automatically) ...
Definition: MailMessage.qm.dox.h:114
static string encodeData(data data, string mime, string disp, string enc)
returns a string of message data according to the encoding passed
list< string > getBCC()
returns the list of "BCC:" addresses
static bool checkEmailAddress(string str)
returns True if the string contains an email address, False if not
*string getFrom()
returns the sender's email address
bool receiptDelivery()
returns the delivery receipt setting
the MailMessage namespace holds all public definitions in the MailMessage module
Definition: MailMessage.qm.dox.h:102
checkSendPossible()
throws a MESSAGE-ERROR exception if the Message cannot be sent
list< string > addCC(string recipient)
add a recipient to the Message's cc list
list< string > addTO(string recipient)
add a recipient to the Message's recipient list
const EncDefault
default content transfer encoding depending on attachment type
Definition: MailMessage.qm.dox.h:111
string toString(bool include_body=False)
returns a multi-line string representing the Message