nedimf / maildroid

Maildroid is a small robust android library for sending emails using SMTP server
188 stars 24 forks source link

onSuccess callback being called regardless of result #51

Open KaduCmK opened 1 year ago

KaduCmK commented 1 year ago

Tried testing the library using mailtrap, everything works great but if if try to simulate an error (in my case, putting a wrong smtp username), the onSuccess callback is called, followed by the onFailure with the error code. I don't think that's right...

to reproduce just set up a basic handler, define both callbacks and send an email through mailtrap but with a wrong username

nedimf commented 12 months ago

Sadly, I haven't had time to check this out, but yeah I agree it is not wanted behaviour.