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

Possible to return the raw sent message? #229

Closed
tjrhodes opened this issue Aug 1, 2018 · 4 comments
Closed

Possible to return the raw sent message? #229

tjrhodes opened this issue Aug 1, 2018 · 4 comments

Comments

@tjrhodes
Copy link

tjrhodes commented Aug 1, 2018

Hi,

Firstly thanks for a great tool, I've been using it in a new project and it's nice to work with.

I get the returned message as an object, is it possible to get the raw mime message sent to the smtp server?

Thanks,

Tom.

@eleith
Copy link
Owner

eleith commented Aug 2, 2018

there was an attempt at a PR that does this: #219

essentially, you could add some hooks that one could listen to, so that you can get at the raw data.

@tjrhodes
Copy link
Author

tjrhodes commented Aug 4, 2018

Hey,

Thanks, ok, I'll have a look at that PR in more detail.

@zackschuster
Copy link
Collaborator

as of c4ddeda the internal logic for creating the raw message object is exposed as a separate api; you should see this api available in the next major release.

i'm opposed to implementing data interceptors for this, as that introduces non-trivial performance implications. if you want to know what we're sending, it's far cheaper to just make a copy :)

closing for now, but feel free to re-open if you think there's a path forward.

@zackschuster
Copy link
Collaborator

@tjrhodes this is now live in 3.0.0 :)

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

3 participants