You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can’t find a tutorial to create multipart mails with a text part and an utf-8 base64 encoded html part by using the standard library. The best I could find is this but it doesn’t seam to produce a valid mime encoding. An example using templates would be great.
My use case is the following. My Go program is doing a batch processing (e.g. backup, data integrity check, ...) and sends a report by mail. I have a python code that run every night and produce a text only report. When the report is long, it’s hard to locate the problems. I would now like to write the code in Go (because I can), and I’m stuck at generating a multipart mail with problems shown in red in the html part.
Another use case could be to send a multipart mail containing markdown text and its html encoding. The user would provide the markdown text.
The text was updated successfully, but these errors were encountered:
https://github.com/jhillyerd/enmime
It is a pretty good library, but for a video, you just look at a few
patterns inside.
There is a multipart library in stdlib, works for both multipart
mixed/alternative/related email and multipart post-form http request bodies.
On Wed, Nov 21, 2018, 5:35 AM Christophe Meessen ***@***.*** wrote:
I can’t find a tutorial to create multipart mails with a text part and an
utf-8 base64 encoded html part by using the standard library. The best I
could find is this
<https://www.blog.labouardy.com/sending-html-email-using-go/> but it
doesn’t seam to produce a valid mime encoding. An example using templates
would be great.
My use case is the following. My Go program is doing a batch processing
(e.g. backup, data integrity check, ...) and sends a report by mail. I have
a python code that run every night and produce a text only report. When the
report is long, it’s hard to locate the problems. I would now like to write
the code in Go (because I can), and I’m stuck at generating a multipart
mail with problems shown in red in the html part.
Another use case could be to send a multipart mail containing markdown
text and its html encoding. The user would provide the markdown text.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#94>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANlVUk980bIfXb5cSRmnTTY3kXsPYrM-ks5uxSxZgaJpZM4Ys1sn>
.
I can’t find a tutorial to create multipart mails with a text part and an utf-8 base64 encoded html part by using the standard library. The best I could find is this but it doesn’t seam to produce a valid mime encoding. An example using templates would be great.
My use case is the following. My Go program is doing a batch processing (e.g. backup, data integrity check, ...) and sends a report by mail. I have a python code that run every night and produce a text only report. When the report is long, it’s hard to locate the problems. I would now like to write the code in Go (because I can), and I’m stuck at generating a multipart mail with problems shown in red in the html part.
Another use case could be to send a multipart mail containing markdown text and its html encoding. The user would provide the markdown text.
The text was updated successfully, but these errors were encountered: