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
If you do Email.Headers.Add("Bcc", "[email protected]"), you don't get a BCC to that address, but instead an email to the To:, which has a visible header Bcc: [email protected]. Perhaps this is by design? But Email.Headers.Add("To", "[email protected]") for example does override Email.To.
The text was updated successfully, but these errors were encountered:
I think the library is working correctly as long as you use Email.Bcc = []string{...} then it is being put in SMTP RCPT TO: but not in the mail header part.
I didn't think of this, since I read most of email.go, I could remember the logic from there It makes sense. I am not sure it will work ovewriting "To" header, since Email.To is still used as RCPT TO. Should be pretty easy to test, using Email.To = []string{} and setting Email.Headers["To"] to something. It will fail.
If you do
Email.Headers.Add("Bcc", "[email protected]")
, you don't get a BCC to that address, but instead an email to theTo:
, which has a visible headerBcc: [email protected]
. Perhaps this is by design? ButEmail.Headers.Add("To", "[email protected]")
for example does overrideEmail.To
.The text was updated successfully, but these errors were encountered: