Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No connection to server #7

Open
GTP95 opened this issue Jul 8, 2017 · 0 comments
Open

No connection to server #7

GTP95 opened this issue Jul 8, 2017 · 0 comments

Comments

@GTP95
Copy link

GTP95 commented Jul 8, 2017

Hello.
Your library is really useful but I ran into a problem. Using the TestMail example I'm able to send an email but if I use the same settings in my code it fails. Sometimes it fails silently even if the debug mode is set to 3 (I can tell it failed because I added some serial output), some others it just outputs "No connection to server!" followed by the server's address and port. I'm sure that the ESP8266 is connected to the WiFi network because it hosts a webpage that I can reach. Here's my code, the only real difference I found between it and the example is that I call the mail functions inside the "loop" part of the sketch instead of the "setup" part but this shouldn't matter, right? Did I do something wrong?

NOTES: In the code below I put the debug mode to 0 because the level 3 wasn't providing any additional output. Sensitive informations are replaced whit an asterisk. There are some comments left from another project I modified, I left those to give you exactly the same sketch I'm compiling, even if they shouldn't affect the result.

Here's a pastebin link to my code: https://pastebin.com/8rj6Vvcf
EDIT: removed code and added pastebin link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant