Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send result #80

Open
kereal opened this issue Feb 24, 2023 · 2 comments
Open

Send result #80

kereal opened this issue Feb 24, 2023 · 2 comments

Comments

@kereal
Copy link

kereal commented Feb 24, 2023

Hi, I'm using carbon with smtp adapter.

How can I get the result of sending a message?

Method "deliver" return useless "{"221", ["2.0.0 Closing connecton"]}"

Email client returns true or false
https://github.com/arcage/crystal-email/blob/2f6ee366e6fd2ea24ed1df484eaab39e19ffdc0b/src/email/client.cr#L186

Maybe it's worth returning this result from the adapter and this method?

def deliver

@jwoertink
Copy link
Member

@kereal
Copy link
Author

kereal commented Feb 25, 2023

Ok, I can get response, but it's not true or false from EMail::Client
For example, i got
ERROR - e_mail.client: [EMail_Client] <-- AUTH 535 Authentication failed.
with response "{"221", ["Bye"]}"

The letter was not sent and I can't find out about it inside my mailer ApplicationMailer < Carbon::Email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants