54{
57
59 new WText(L
"<p>We could have, but did not send the following email:</p>",
60 horiz);
61
63 if (!contacts.empty())
65 for (unsigned i = 0; i < contacts.size(); ++i) {
66 new WText(L
"To: \"" + contacts[i].name + L
"\" <"
67 + contacts[i].email + L
">",
PlainText, horiz);
69 }
70
72 if (!contacts.empty())
74 for (unsigned i = 0; i < contacts.size(); ++i) {
75 new WText(L
"Cc: \"" + contacts[i].name + L
"\" <"
76 + contacts[i].email + L
">",
PlainText, horiz);
78 }
79
81 if (!contacts.empty())
83 for (unsigned i = 0; i < contacts.size(); ++i) {
84 new WText(L
"Bcc: \"" + contacts[i].name + L
"\" <"
85 + contacts[i].email + L
">",
PlainText, horiz);
87 }
88
91
93 if (!attachments.empty())
95 for (unsigned i = 0; i < attachments.size(); ++i) {
96 new WText(L
"Attachment: \""
97 + attachments[i].fileName
98 + L"\" (" + attachments[i].contentDescription
100
101 unlink(attachments[i].spoolFileName.c_str());
102
103 new WText(
", was in spool file: "
104 + attachments[i].spoolFileName, horiz);
106 }
107
109
111 new WText(
"Message body: ", horiz);
113
114 if (!message.empty()) {
116 } else
117 new WText(
"<i>(empty)</i>", horiz);
118
121
122 wApp->quit();
123}
std::vector< Contact > bcc() const
Get the Bc: contacts.
const WString & message() const
Get the message.
std::vector< Contact > to() const
Get the To: contacts.
const WString & subject() const
Get the subject.
std::vector< Contact > cc() const
Get the Cc: contacts.
std::vector< Attachment > attachments() const
Get the list of attachments.