-
Notifications
You must be signed in to change notification settings - Fork 574
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
Embed/Attach files from URLs? #58
Comments
I added some functionality for attaching/embedded from any data source (io.Reader). I believe it would let you make URLs less of a special case since you could pass the http.Response directly to AttachFromReader and EmbedFromReader. https://github.com/crasm/gomail/commit/278dd7902726ff7796c2b1cab1119737e24241b5 |
Was just looking for the same functionality for attaching user images in the emails. Good work @crasm. @alexcesaro would it be possible to merge this into the library? |
@kumarharsh I think #78 solves this as well as my version, so that PR just needs to be approved. |
Hello,
I would like to send emails with embedded files from URLs.
SetCopyFunc
only has access toio.Writer.
How would one replace
os.Open
with i.ehttp.Get
?The text was updated successfully, but these errors were encountered: