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

Store last SMTP code and message in Client #173

Closed
wants to merge 1 commit into from

Conversation

macrosonline
Copy link

No description provided.

@emersion
Copy link
Owner

What's the motivation for this?

@macrosonline
Copy link
Author

What's the motivation for this?

I need to get SMTP code when sending mails, to know "is that error temporary or not" or to get full smtp response when message is accepted (some systems shows internal message id in response and this id is required to debug delivery).

@emersion
Copy link
Owner

If there is an SMTP error, the returned error will be of type smtp.SMTPError.

@macrosonline
Copy link
Author

If there is an SMTP error, the returned error will be of type smtp.SMTPError.

But how about SMTP response message, especially if it is not error ?

@emersion
Copy link
Owner

emersion commented Dec 8, 2023

Closing as duplicate of #189

@emersion emersion closed this Dec 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants