wneessen / go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go
https://go-mail.dev
MIT License
571 stars 44 forks source link

Fixes #8 #10

Closed wneessen closed 2 years ago

wneessen commented 2 years ago

We were using io.Copy to write to the body string/alternative string to the io.Writer. This placed the byte position of the buffer to be at the EOF after the first WriteTo() call leaving the output of a 2nd call to WriteTo() empty.