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

Client: read server response on DATA command #189

Open
kayrus opened this issue Jun 3, 2022 · 1 comment · May be fixed by #263
Open

Client: read server response on DATA command #189

kayrus opened this issue Jun 3, 2022 · 1 comment · May be fixed by #263
Labels

Comments

@kayrus
Copy link
Contributor

kayrus commented Jun 3, 2022

Usually remote SMTP servers return a successful 250 code with an informative message, e.g. Queued %messageID%
Unfortunately current implementation doesn't allow to intercept this response, though it's required for message tracking and monitoring.

go-smtp/client.go

Lines 460 to 467 in 608f3c2

_, _, err := d.c.Text.ReadResponse(250)
if err != nil {
if protoErr, ok := err.(*textproto.Error); ok {
return toSMTPErr(protoErr)
}
return err
}
return nil

@kayrus kayrus changed the title Read server response on DATA command Client: read server response on DATA command Jun 3, 2022
emersion added a commit that referenced this issue Apr 24, 2024
@emersion emersion linked a pull request Apr 24, 2024 that will close this issue
4 tasks
@moutoum
Copy link

moutoum commented Sep 19, 2024

Hello, I would be very interested by this feature.
What is the progress on this one?
Thanks :)

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