PDA

View Full Version : I don't get all emails, which are sent out of Qt



Qiieha
6th April 2011, 17:08
Hi
I have a problem. I want to send mail with attachment from my Qt application. I use the MailSender.
The smtp server is correct and the port too, but I don't get all mails. Sometimes they are in the Inbox and sometimes not.
Does anybody know what's the reason for this occur? Maybe somebody has a hint.

Thank u

squidge
6th April 2011, 20:05
Maybe your code is faulty.

Or maybe there was an unhandled network error.

Check with etherpeek to see if the mails were sent correctly? If so, maybe they are in the junk/spam folder.

Qiieha
7th April 2011, 08:36
thank u...
etherpeek is not available for linux. do you know another software?

Added after 23 minutes:

etherape works :)...
they were send correctly to the server, but there is obviously no response. What's wrong?

Qiieha
7th April 2011, 10:54
I found the reason for the problem. The message id of the messages was everytime the same, because the Id-generator didn't work fine. He brought everytime the same ID. After some additions with qsrand and qrand the id-generator works and the mails get sent.

squidge
29th April 2011, 12:40
For future information, Linux has tcpdump plus you can strace.