Results 1 to 4 of 4

Thread: Sending mail using Qt

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Sending mail using Qt

    Qt 3 had a class called QDns using which an e-mail could be sent easily. I cannot find anything similar in Qt 4.

    I need something using which I send mails (with attachment) from my application itself.

    Please help.
    Thanks a lot.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Sending mail using Qt

    Quote Originally Posted by munna View Post
    Qt 3 had a class called QDns using which an e-mail could be sent easily.
    Are you sure? QDns is used to resolve network addresses using DNS, not for sending emails...

    I cannot find anything similar in Qt 4.
    QDns replacement in Qt4 is QHostInfo.

    I need something using which I send mails (with attachment) from my application itself.
    I'm afraid QHostInfo won't be of much help here You need some SMTP class for that, I'm sure there is an SMTP class for C++ somewhere on the Net.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Sending mail using Qt

    J-P Nurmi

  4. #4
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sending mail using Qt

    Quote Originally Posted by Wysota
    Are you sure? QDns is used to resolve network addresses using DNS, not for sending emails...
    Yes, you are right. But QDns can also be used to look up for mail servers which I think cannot be done using QHostInfo. May be I am wrong.

Similar Threads

  1. qt network performance
    By criss in forum Qt Programming
    Replies: 16
    Last Post: 24th July 2006, 09:23
  2. How to get a vaild mail time GMT?
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2006, 21:16
  3. Opening the default mail client
    By munna in forum Newbie
    Replies: 5
    Last Post: 3rd April 2006, 13:58
  4. Sending a image using QSocket & QServerSocket
    By machathu in forum Qt Programming
    Replies: 1
    Last Post: 28th March 2006, 12:23
  5. Did you people get the unsolicited mail? - "Release of Makedoc"
    By jamadagni in forum General Discussion
    Replies: 5
    Last Post: 14th February 2006, 12:46

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.