angelos3lex / react-native-smtp-mailer

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

Amazon AWS iOS unstable connection #31

Closed LuizFBrisighello closed 3 years ago

LuizFBrisighello commented 4 years ago
    RNSmtpMailer.sendMail({
      mailhost: 'email-smtp.us-east-1.amazonaws.com',
      port: '587',
      ssl: false,
      username: 'host.user',
      password: 'host.password',
      from: 'auth.mail@mail.com',
      recipients: 'my.mail@mail.com',
      subject: 'subject',
      htmlBody: '<h1>header</h1><p>body</p>',
      attachmentPaths: [],
      attachmentNames: [],
      attachmentTypes: []
    })
      .then(success => console.log(success))
      .catch(err => console.log(err))

On iOS: Error: A stable connection to the server could not be stablished

I'm having trouble to debug these. I'm not the adming of the AWS account wich it makes even harder. Does anyone have a guess?

react-native: 0.60.5 react-native-smtp-mailer: 1.2.2

NikonovichN commented 3 years ago

@angelos3lex, @MarkusPettersson98 Any clues?

LuizFBrisighello commented 3 years ago

@NikonovichN I ended up never solving/working around this and abandoned the lib. My co-worker did every thing on the backend with a simple rest API