react-native-smtp-mailer icon indicating copy to clipboard operation
react-native-smtp-mailer copied to clipboard

Error: could not connect to SMTP

Open geethuth opened this issue 4 years ago • 7 comments

@angelos3lex I am trying to implement SMTP mail using react native and came to see your library. The steps are well explained and I followed the same. When I clicked on the submit button I got an error message like this. image.

I just created a new project and paste the following code. https://github.com/angelos3lex/react-native-smtp-mailer/blob/master/example/App.js and modified the fileds like mailhost,port,username,password,from,recipients, and subject with my data. Can you please help me to sort out the issue?

geethuth avatar Jun 29 '20 11:06 geethuth

Could you check the logcat on android studio for more info on the error?

angelos3lex avatar Jun 29 '20 11:06 angelos3lex

@angelos3lex This is the log I got.
log.txt

I was looking into the log and I couldn't figure out where I went wrong. Can u plz help me.

geethuth avatar Jun 29 '20 13:06 geethuth

I can't see something either. Seems like a wrong combination of host, username, password, port or ssl. You can use some other way to check connectivity. i googled and found this for example. Do not know if its secure though, but even if not, there should be alternatives

angelos3lex avatar Jun 29 '20 13:06 angelos3lex

@geethuth any update on this?

angelos3lex avatar Jan 23 '21 09:01 angelos3lex

I have the same problem. I have tested the configuration and they are ok. I-m using mailtrap for testing

domenicodngls avatar Oct 31 '21 10:10 domenicodngls

@domenicodngls Is this a problem on both ios and android side?

angelos3lex avatar Oct 31 '21 15:10 angelos3lex

I've tried only on android, but using Gmail as smtp host it's working fine... Maybe mailtrap has something different

domenicodngls avatar Oct 31 '21 17:10 domenicodngls