In general, there is an array and you need to add elements to it. Question: how to do this?
static const char *payload_text[12]; payload_text[0] = "Date: Mon, 10 Nov 2018 21:54:29 +1100\r\n"; *payload_text[1] = "To: " TO_MAIL "\r\n"; *payload_text[2] = "From: " FROM_MAIL "\r\n"; *payload_text[3] = "Cc: " CC_MAIL "\r\n"; *payload_text[4] = "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@" "rfcpedant.example.org>\r\n"; *payload_text[5] = "Subject: SMTP example message\r\n"; *payload_text[6] = "\r\n"; *payload_text[7] = su; *payload_text[8] = "\r\n"; *payload_text[9] = "It could be a lot of lines, could be MIME encoded, whatever.\r\n"; *payload_text[10] = "Check RFC5322.\r\n"; *payload_text[11] = NULL;
std::vector. - HolyBlackCatpayload_text[0] =correctly written, but then some sort of nonsense went on. Why suddenly in*payload_text[1] = ...this*appeared? - AnT