Struct EmailData

Struct Documentation

struct EmailData

Raw email data with headers.

Public Functions

inline EmailData(const std::string &message_id_, const std::string &in_reply_to_, const std::string &from_, const struct EmailRecipients &recipients_, const struct EmailContent &content_, std::optional<EmailHeaders> additional_headers_ = std::nullopt)

Constructor.

EmailData(const EmailData&) = default

Copy constructor.

Public Members

std::string message_id

Message-ID header value.

std::string in_reply_to

In-Reply-To header value.

std::string from

Origin email.

struct EmailRecipients recipients

Recipients of the email.

struct EmailContent content

Content of the email.

EmailHeaders additional_headers

Additional headers.