Hello, Am Do., 9. Sept. 2021 um 20:19 Uhr schrieb Dean Schulze < dean.w.schu...@gmail.com>:
> I'm sending emails with smtp.SendMail() via gmail. I set the from > argument to smtp.SendMail() to a different email address than my gmail > username, but the emails still get sent with the From: as my gmail address. > > Do I need to do something else to change the From: in the emails, or is > gmail always going to use my gmail address? > > I guess gmail uses the address bound to the used account, which would be in my opinion quite reasonable behavior. BTW this question is a bit OT here since not related to Go rather than mailing policy of Google accounts. BR, Roland Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/04eb41bd-9002-443b-8921-c3ddcd833c87n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/04eb41bd-9002-443b-8921-c3ddcd833c87n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2B8p0G20TRSqG81EwkqVKFgVWMVgSkTcUbwKQBVMz9HbKfsirg%40mail.gmail.com.