![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMailMessage.h>
Public Member Functions | |
cMailMessage () | |
~cMailMessage () | |
HRESULT | CheckValidMessage () const |
cStringA | GetToEntry (int i=0) const |
ITERATE_t | SetToList (const char *pszDestList) |
bool | HasTag (MAIL_TAG_TYPE eTag, const char *pszVal=nullptr) const |
cStringA | GetTag (MAIL_TAG_TYPE eTag) const |
HRESULT | SetTag (MAIL_TAG_TYPE eTag, cStringA sVal) |
void | SetTagInt (MAIL_TAG_TYPE eTag, int iVal) |
HRESULT | put_BodyStr (const char *pszBody) |
HRESULT | SendMailMessage (cStreamOutput &o, bool bBody=true) |
UNITTEST_FRIEND (cMailMessage) | |
Public Attributes | |
cMailName | m_From |
Source email address. MAIL FROM: and MAIL_TAG_From. More... | |
cArrayStruct< cMailName > | m_aTo |
list of destination email address(s). TO: MAIL_TAG_To More... | |
cArrayStruct< cMailName > | m_aCC |
list of destination email address(s). CC: BCC: More... | |
bool | m_bFormatHTML |
Encode the message body as HTML or not. MAIL_TAG_Content_Type = MIME_HTML. More... | |
cArrayStringA | m_aBody |
body text of the message. each line to be followed by CR More... | |
Protected Attributes | |
cArraySortStructHash< cMailTag > | m_aTags |
SMTP tags that are in this message. e.g. MAIL_TAG_From, MAIL_TAG_Subject. More... | |
Friends | |
class | cMailTag |
Mail message to be sent or received with POP or SMTP. Optionally the Mail message header that may be requested from the server without the full message body. like: .NET System.Net.Mail.MailMessage
GrayLib::cMailMessage::cMailMessage | ( | ) |
GrayLib::cMailMessage::~cMailMessage | ( | ) |
HRESULT GrayLib::cMailMessage::CheckValidMessage | ( | ) | const |
Is this message in generally valid format ?
cStringA GrayLib::cMailMessage::GetTag | ( | MAIL_TAG_TYPE | eTag | ) | const |
Get a Tags Value
cStringA GrayLib::cMailMessage::GetToEntry | ( | int | i = 0 | ) | const |
Get MAIL_TAG_To
bool GrayLib::cMailMessage::HasTag | ( | MAIL_TAG_TYPE | eTag, |
const char * | pszVal = nullptr |
||
) | const |
HRESULT GrayLib::cMailMessage::put_BodyStr | ( | const char * | pszBody | ) |
parse the body into lines. either "\n" or "\r\n"
HRESULT GrayLib::cMailMessage::SendMailMessage | ( | cStreamOutput & | o, |
bool | bBody = true |
||
) |
HRESULT GrayLib::cMailMessage::SetTag | ( | MAIL_TAG_TYPE | eTag, |
cStringA | sVal | ||
) |
Add a Tag
void GrayLib::cMailMessage::SetTagInt | ( | MAIL_TAG_TYPE | eTag, |
int | iVal | ||
) |
Add a Tag
ITERATE_t GrayLib::cMailMessage::SetToList | ( | const char * | pszDestList | ) |
Set a possible list of destinations. MAIL_TAG_To format is "email;"Name" <email>;Name[email];"
GrayLib::cMailMessage::UNITTEST_FRIEND | ( | cMailMessage | ) |
|
friend |
cArrayStringA GrayLib::cMailMessage::m_aBody |
body text of the message. each line to be followed by CR
cArrayStruct<cMailName> GrayLib::cMailMessage::m_aCC |
list of destination email address(s). CC: BCC:
|
protected |
SMTP tags that are in this message. e.g. MAIL_TAG_From, MAIL_TAG_Subject.
cArrayStruct<cMailName> GrayLib::cMailMessage::m_aTo |
list of destination email address(s). TO: MAIL_TAG_To
bool GrayLib::cMailMessage::m_bFormatHTML |
Encode the message body as HTML or not. MAIL_TAG_Content_Type = MIME_HTML.
cMailName GrayLib::cMailMessage::m_From |
Source email address. MAIL FROM: and MAIL_TAG_From.