angelos3lex / react-native-smtp-mailer

Send emails by connecting to smtp server+attachments, using android javamail and ios mailcore2
38 stars 34 forks source link

Error: could not connect to SMTP #33

Open geethuth opened 4 years ago

geethuth commented 4 years ago

@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?

angelos3lex commented 4 years ago

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

geethuth commented 4 years ago

@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.

angelos3lex commented 4 years ago

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 commented 3 years ago

@geethuth any update on this?

domenicodngls commented 3 years ago

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

angelos3lex commented 3 years ago

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

domenicodngls commented 3 years ago

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