Function email::utils::payload::build_payload(EmailRecipients::SharedPtrConst, const struct EmailContent&, std::optional<EmailHeaders>, std::optional<std::string>)

Function Documentation

const std::string email::utils::payload::build_payload(EmailRecipients::SharedPtrConst recipients, 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:
  • recipients – the 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