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

Support reading outgoing QueueID #424

Open
sapmli opened this issue Jan 30, 2025 · 1 comment
Open

Support reading outgoing QueueID #424

sapmli opened this issue Jan 30, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers prio:medium An issue with medium priority

Comments

@sapmli
Copy link

sapmli commented Jan 30, 2025

Is your feature request related to a problem? Please describe.

Email clients often need to store the outgoing QueueID, that means the ID the remote relay accepted the email under.
So that for email tracing purposes you have a reference.

In https://github.com/wneessen/go-mail/blob/main/smtp/smtp.go#L403, the message sent along a 250 response code is discarded.

Describe the solution you'd like

A solution might be to introduce a callback, or to store the message in the client, where the caller might fetch it from after the datacloser.Close() call.

The latter avoids a breaking change in the API, so it might be the simpler one.

Describe alternatives you've considered

No response

Additional context

No response

@sapmli sapmli added the enhancement New feature or request label Jan 30, 2025
@wneessen
Copy link
Owner

Thanks for the suggestion @sapmli. I'll look into it and see what a suitable solution would be.

@wneessen wneessen added good first issue Good for newcomers prio:medium An issue with medium priority labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers prio:medium An issue with medium priority
Projects
None yet
Development

No branches or pull requests

2 participants