We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can send an email smoothly with html5 template as:
t, _ := template.ParseFiles("template.html") m.AddAlternativeWriter("text/html", func(w io.Writer) error { return t.Execute(w, struct { Name string Message string Number string }{ Name: PushName, Message: caption, Number: sender, }) })
What I'm looking for, is instead of sending the template as the email body, I want to send it as attachement, something like:
m.Attach(("text/html", func(w io.Reader) error { return t.Execute(w, struct { Name string Message string Number string }{ Name: PushName, Message: caption, Number: sender, }) })
What is the best way to do so.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I can send an email smoothly with html5 template as:
What I'm looking for, is instead of sending the template as the email body, I want to send it as attachement, something like:
What is the best way to do so.
Thanks
The text was updated successfully, but these errors were encountered: