hy,
I need to send an email from my Qt application, but but I don't know where to begin
I use WinXP with Qt4.2.2 ( Visual Studio 2005 C++ )
thanks
hy,
I need to send an email from my Qt application, but but I don't know where to begin
I use WinXP with Qt4.2.2 ( Visual Studio 2005 C++ )
thanks
See this post: http://www.qtcentre.org/forum/f-qt-p...g-qt-2221.html
Last edited by tpf80; 19th December 2008 at 22:09. Reason: found where I got info from.
thanks I try with this
I come not to compile the exemple,
I Have a problem in the file " qthread_p.h",
#include "qplatformdefs.h" not found
Hello,
I wrote this class ( with other people ) wich works well
Here is the link: http://forum.qtfr.org/attachment.php?item=228
Sorry wrong link
the good one: http://forum.qtfr.org/attachment.php?item=200
in this exemple , you use Qt4.3,
I work with Qt4.2.2 so I dont have "QAuthenticator" includ
I m right ?
Last edited by omega36; 20th December 2008 at 11:17.
Yes you are right. Authenticator is used for proxy authentification.
As far as I know, noone as never try this class with a proxy ( I don't).
This is a very particular case so I think you can comment sections about authenticator and get the class to compile.
ok I did wath you say, and now I have the same problem with an other includ
#include <QSslSocket>
( and may be others includ of Qt4.3 )
ideas ?
Yes,
The QSslSocket aims at support ssl with SMTP
You've got two options: recompile Qt with openssl support or delete everything about QSslSocket and use only QTcpSocket. In this case you cannot connect to SMTP servers that required SSL.
As before, this a particular case and most SMTP servers accept non encrypted connections. I think this as nothing to do with Qt 4.3, I'm quite sure you can compile Qt with SSL
Last edited by yonnak; 20th December 2008 at 12:24. Reason: Precision
Alternatively, see that application:
http://www.qt-apps.org/content/show....?content=91315
If all you want to do is -send- an e-mail from your application, it is very easy to use QDesktopServices:
Qt Code:
strMailTo += "Hi! This is the body of the e-mail";To copy to clipboard, switch view to plain text mode
The QUrl constructor will convert the "strMailTo" string into a proper URL (that is, replace spaces by %20%, and so forth). The Boolean result tells you whether the call succeeded or not.
Forget all this stuff about sockets, TCP, SMTP, and so on.
David
NoBody!
Bookmarks