Function email::utils::payload::build_payload(const std::vector<std::string>&, const std::vector<std::string>&, const std::vector<std::string>&, const struct EmailContent&, std::optional<EmailHeaders>, std::optional<std::string>)
Defined in File payload_utils.hpp
Function Documentation
-
const std::string email::utils::payload::build_payload(const std::vector<std::string> &to, const std::vector<std::string> &cc, const std::vector<std::string> &bcc, const struct EmailContent &content, std::optional<EmailHeaders> additional_headers = std::nullopt, std::optional<std::string> reply_ref = std::nullopt)
Build curl email payload from recipients and content.
- Parameters:
to – the “TO” recipients
cc – the “CC” recipients
bcc – the “BCC” recipients
content – the content of the email
additional_headers – the additional headers to include
reply_ref – the reply reference (Message-ID of the email to reply to)
- Returns:
the payload