jhillyerd / enmime

MIME mail encoding and decoding package for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Envelope to send, or create a pre-filled message builder

dolanor opened this issue · comments

Hi,

What I did: use the lib and parsed an envelope, changed some from: and to: fields

What I expected: use the envelope as is to send it through smtp with the updated from: and to:

What I got: no API exists to get that modified envelope without building it from scratch with the Builder

Release or branch I am using: v0.8.1

The builder is a simplified subset of what's possible in MIME, so Builder can convert to Envelope, but not the other way around. However, we could add a Send function to Envelope as well.