Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

episode idea: handling multipart mails (html+text) #94

Open
chmike opened this issue Nov 21, 2018 · 1 comment
Open

episode idea: handling multipart mails (html+text) #94

chmike opened this issue Nov 21, 2018 · 1 comment

Comments

@chmike
Copy link

chmike commented Nov 21, 2018

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.

@requaos
Copy link

requaos commented Nov 21, 2018 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants