Results 1 to 5 of 5

Thread: I don't get all emails, which are sent out of Qt

  1. #1
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default I don't get all emails, which are sent out of Qt

    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

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I don't get all emails, which are sent out of Qt

    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.

  3. The following user says thank you to squidge for this useful post:

    Qiieha (29th April 2011)

  4. #3
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I don't get all emails, which are sent out of Qt

    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?
    Last edited by Qiieha; 7th April 2011 at 08:36.

  5. #4
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: I don't get all emails, which are sent out of Qt

    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.

  6. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I don't get all emails, which are sent out of Qt

    For future information, Linux has tcpdump plus you can strace.

Similar Threads

  1. Sending emails using Qt
    By homerun4711 in forum Newbie
    Replies: 5
    Last Post: 10th January 2011, 17:30
  2. How to programmatically add attachments to emails in Qt
    By Praveena pb in forum Qt Programming
    Replies: 2
    Last Post: 25th November 2010, 19:34
  3. A pair of emails questions
    By Raccoon29 in forum Qt Programming
    Replies: 4
    Last Post: 28th December 2009, 23:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.