![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMailMessage.h>
Public Member Functions | |
cMailName (cStringA sAddr="", cStringA sName="") | |
StrLen_t GRAYCALL | SetParsedName (const char *pszLine) |
cStringA | GetFullName () const |
HRESULT | CheckValidEmailAddressFormat () const |
Static Public Member Functions | |
static bool GRAYCALL | IsValidEmailAddressChar (wchar_t ch) |
static HRESULT GRAYCALL | CheckValidEmailAddressFormat (const char *pszEmail) |
Public Attributes | |
cStringA | m_sAddr |
Email address. e.g. "name@menasoft.com". More... | |
cStringA | m_sName |
Friendly name. e.g. "Dennis Robinson". More... | |
an email address + friendly name pair. ASCII chars where upper and lower case are equiv. Used for TO: CC: and BCC: fields.
|
inline |
|
static |
Is this string a generally valid email address ?
cStringA GrayLib::cMailName::GetFullName | ( | ) | const |
Re-combine the names.
|
static |
Valid characters are, numbers, letters, underscore "_", dash "-" and the dot "."). Technically others are valid too: space, ? https://en.wikipedia.org/wiki/Email_address
StrLen_t GrayLib::cMailName::SetParsedName | ( | const char * | pszLine | ) |
cStringA GrayLib::cMailName::m_sAddr |
Email address. e.g. "name@menasoft.com".
cStringA GrayLib::cMailName::m_sName |
Friendly name. e.g. "Dennis Robinson".