This class should be used to send emails from Apollo. It invokes the external unix "mail" program, which must be installed and configured on your system for this to work.
Please note: If you want to include quotations (") or other special characters in your message, they must be DOUBLE ESCAPED!
(This means you use \\" instead of \")
Public Member Functions | |
QMail () | |
default constructor | |
QMail (const QMail &orig) | |
copy constructor | |
QMail (std::string Recipient, std::string Subject, std::string Message) | |
constructor | |
virtual | ~QMail () |
destructor | |
int | Send () |
Send the mail. | |
void | SetSubject (std::string Subject) |
Set subject. | |
void | SetMessage (std::string Message) |
Set message. | |
void | AppendToMessage (std::string Text) |
Append to message. | |
int | AddRecipient (std::string Recipient) |
Add a recipient. | |
Private Attributes | |
std::vector< std::string > | fRecipients |
List of recipients. | |
std::string | fSubject |
Subject of email. | |
std::string | fMessage |
Body of email. |
QMail::QMail | ( | std::string | Recipient, | |
std::string | Subject, | |||
std::string | Message | |||
) |
constructor
Recipient | Address of recipient | |
Subject | Subject of mail | |
Message | Body of mail |
int QMail::Send | ( | ) |
Send the mail.
void QMail::SetSubject | ( | std::string | Subject | ) | [inline] |
Set subject.
Subject | Subject of email |
void QMail::SetMessage | ( | std::string | Message | ) | [inline] |
Set message.
Message | Body of email |
void QMail::AppendToMessage | ( | std::string | Text | ) | [inline] |
Append to message.
Text | Text to add to email message |
int QMail::AddRecipient | ( | std::string | Recipient | ) |
Add a recipient.
Recipient | address of recipient to add |