此libeSMTP示例未显示任何响应 [英] This libeSMTP example not showing any response
问题描述
你好
我所说的例子是here 。我编译了它,一切都很好。我想从我的GMail帐户发送一封电子邮件到Hotmail帐户。这是我传递给该计划的命令行选项:
-hsmtp.gmail.com: 465 -fexample@gmail.com -sTest -m -c -t /home/abdalla/TLS_Test/Test.txt example@hotmail.com
我编译了在openSUSE 13.2上使用KDevelop 4.7的示例。可执行文件正在运行但没有响应,我认为甚至不会调用回调函数。此外,代码没有为我提供登录密码的选项。在此先感谢。
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.
推荐答案
在发送带有libeSMTP的电子邮件 [ ^ ]。
我建议用调试器单步执行示例,看看到底在哪里程序失败或挂起。通过这种方式,您可以获得有关可能出现问题的更多信息。
在许多情况下,不久前的电子邮件示例不再起作用,因为大多数电子邮件提供商现在都需要使用SSL / TLS协议。可能没有为此做好准备。
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.
对于阅读此内容的任何人,我已将jwSMTP更改为使用cURL库。似乎jwSMTP只支持普通登录身份验证,没有安全性。 这是我使用的代码。
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.
这篇关于此libeSMTP示例未显示任何响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!