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 | ( | const QMail & | orig | ) |
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.
References fMessage, fRecipients, and fSubject.
Referenced by MSimpleDAQCheck::Do(), MSimpleDAQCheck::Done(), and MPulserCheck::NotifyFailure().
void QMail::SetSubject | ( | std::string | Subject | ) | [inline] |
Set subject.
Subject | Subject of email |
References fSubject.
Referenced by MPulserCheck::NotifyFailure().
void QMail::SetMessage | ( | std::string | Message | ) | [inline] |
Set message.
Message | Body of email |
References fMessage.
Referenced by MPulserCheck::NotifyFailure().
void QMail::AppendToMessage | ( | std::string | Text | ) | [inline] |
int QMail::AddRecipient | ( | std::string | Recipient | ) |
Add a recipient.
Recipient | address of recipient to add |
Referenced by MSimpleDAQCheck::Do(), MSimpleDAQCheck::Done(), and MPulserCheck::NotifyFailure().