{
new WText(L
"<p>We could have, but did not send the following email:</p>",
horiz);
if (!contacts.empty())
for (unsigned i = 0; i < contacts.size(); ++i) {
new WText(L
"To: \"" + contacts[i].name + L
"\" <"
+ contacts[i].email + L">", PlainText, horiz);
}
if (!contacts.empty())
for (unsigned i = 0; i < contacts.size(); ++i) {
new WText(L
"Cc: \"" + contacts[i].name + L
"\" <"
+ contacts[i].email + L">", PlainText, horiz);
}
if (!contacts.empty())
for (unsigned i = 0; i < contacts.size(); ++i) {
new WText(L
"Bcc: \"" + contacts[i].name + L
"\" <"
+ contacts[i].email + L">", PlainText, horiz);
}
if (!attachments.empty())
for (unsigned i = 0; i < attachments.size(); ++i) {
new WText(L
"Attachment: \""
+ attachments[i].fileName
+ L"\" (" + attachments[i].contentDescription
+ L")", PlainText, horiz);
unlink(attachments[i].spoolFileName.c_str());
new WText(
", was in spool file: "
+ attachments[i].spoolFileName, horiz);
}
t =
new WText(
"Message body: ", horiz);
if (!message.empty()) {
t =
new WText(message, PlainText, horiz);
} else
t =
new WText(
"<i>(empty)</i>", horiz);
wApp->quit();
}