Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to detect when a mail is sent in vmime
    text
    copied!<p>I send mail from vmime using the following code:</p> <pre><code>vmime::string urlString; urlString="smtp://outgoing.verizon.net"; vmime::utility::url url(urlString); vmime::ref &lt;vmime::net::transport&gt; tr = g_session-&gt;getTransport(url,vmime::create &lt;interactiveAuthenticator&gt;()); // You can also set some properties (see example7 to know the properties // available for each service). For example, for SMTP: tr-&gt;setProperty("options.need-authentication", true); tr-&gt;setProperty("auth.username", userName); tr-&gt;setProperty("auth.password", password); fromString=userName+"@verizon.net"; vmime::mailbox from(fromString); vmime::mailboxList to; toString = toUserName+"@verizon.net"; to.appendMailbox(vmime::create &lt;vmime::mailbox&gt;(toString)); std::ostringstream data; data&lt;&lt;subjectId; // Connect to server tr-&gt;connect(); // Send the message vmime::string msgData = data.str(); vmime::utility::inputStreamStringAdapter vis(msgData); tr-&gt;send(from, to, vis, msgData.length()); logMsg(DEBUG,2,"Thread Id: %ld,Sent the data in the transaction",pthread_self()); </code></pre> <p>I see that the sent data is succesful from the log. But when i connect to the box[to which the mail was sent] and check the inbox, i see 0 mails to that inbox. There is no excepton or error from vmime. when i connect to the web version of the mail box.Iam unable to see any transactions is sent box, even for the succesful mails.Can anyone help how i can see the mails sent in the sent box? Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload