Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

The example I'm talking about is here. I compiled it and everything is fine. I want to send an email from my GMail account to a Hotmail account.This is the command line options I passed to the program:

-hsmtp.gmail.com:465 -fexample@gmail.com -sTest -m -c -t /home/abdalla/TLS_Test/Test.txt example@hotmail.com

I've compiled the example using KDevelop 4.7 on openSUSE 13.2. The executable is running but there is no response, I don't think the callback functions are even called. Plus the code does not have an option for me to provide the password for login. Thanks in advance.
Posted

See my suggestion at Send an email with libeSMTP[^].
 
Share this answer
 
I would suggest to single-step through the example with a debugger and see, where exactly the program fails or hangs. That way you gain more information of what might be going wrong.

In many cases, e-mail examples from the not recent past don't work any longer, because most e-mail providers require now the use SSL/TLS protocols. Old examples might not be prepared for that.
 
Share this answer
 
For anyone reading this, I have changed the jwSMTP to use the cURL library. It seems jwSMTP only supports plain login authentication, no security. This is the code I used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900