#include <mi32/mail.h>
Public Member Functions | |
| MAIL (const MISTRING &recipient, const MISTRING &subject, const MISTRING &body, const MISTRING &sourcename, const MISTRING &sourceaddress) | |
| MAIL (const MISTRING &recipient, const MISTRING &subject, const MISTRING &body) | |
| MAIL () | |
| ~MAIL () | |
| void | AddAttachment (FILEPATH &attachment, MISTRING *attachmentname=0) |
| ERRVALUE | OpenMailClient () |
| ERRVALUE | SendMail () |
| void | SetAuthenticate (const MISTRING &username, const MISTRING &password) |
| void | SetBody (MISTRING &body) |
| void | SetOutgoingServer (const MISTRING &server, INT32 port) |
| void | SetRecipient (MISTRING &recipient) |
| void | SetSourceAddress (MISTRING &sourceaddress) |
| void | SetSourceName (MISTRING &sourcename) |
| void | SetSubject (MISTRING &subject) |
Static Public Member Functions | |
| static MISTRING | MakeRFCSMTPCompatible (const MISTRING &string) |
| MAIL::MAIL | ( | ) |
default constructor
constructor that will set up the email fields
| MAIL::MAIL | ( | const MISTRING & | recipient, | |
| const MISTRING & | subject, | |||
| const MISTRING & | body, | |||
| const MISTRING & | sourcename, | |||
| const MISTRING & | sourceaddress | |||
| ) |
constructor that will set up the email fields
| MAIL::~MAIL | ( | ) |
default destructor
adds an additional attachment to the email will not function with some mail clients warning will be given saying so if failed
will make a string RFC compatible, so it could be sent in an email.
does checks like making sure that a single period is not on a line, and makes sure no line is longer than 1000 characters
| ERRVALUE MAIL::OpenMailClient | ( | ) |
launches the mail client using the settings already specified
| ERRVALUE MAIL::SendMail | ( | ) |
send the email directly using the smtp format
| void MAIL::SetBody | ( | MISTRING & | body | ) |
sets the body of the email
| void MAIL::SetRecipient | ( | MISTRING & | recipient | ) |
sets the recipient of the email, only 1 is allowed
| void MAIL::SetSourceAddress | ( | MISTRING & | sourceaddress | ) |
sets the email address of the from field of the email
| void MAIL::SetSourceName | ( | MISTRING & | sourcename | ) |
sets the name of the from field of the email
| void MAIL::SetSubject | ( | MISTRING & | subject | ) |
sets the subject of the email
1.6.1