sendMessage timeout for poor connectivity? #65

Closed
rwyland opened this Issue Dec 4, 2012 · 2 comments

Comments

Projects
None yet
2 participants

rwyland commented Dec 4, 2012

We are noticing some interesting problems with poor network connectivity when trying to send an SMTP Message. It appears we are getting locked up while trying to send a message, which had us wondering if there is any sort of timeout enabled?

Our code is always checking canConnectToServer before calling sendMessage, and despite getting a green flag, still has issues sending a message.

Owner

mronge commented Mar 14, 2013

Hi!

The timeout in MailCore and libetpan is set pretty high, this is most likely the problem.

Here is some sample code that shows how to set the timeout

#import <libetpan/libetpan.h>

// Turn network timeout down to 15 seconds
struct timeval delay = {  15, 0 };
mailstream_network_delay = delay;

mronge closed this Mar 14, 2013

rwyland commented Mar 14, 2013

Thanks @mronge, but we ended up switching over to AWS SES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment