The task: There is a website, offering a newsletter. I´m sending a newsletter subscription notification to an email address everytime a subscriber subscribes. For this I use send_mail from wagtail.admin.mail – I think it´s not relevant in which way I´m using send_mail.
The problem: I provide a from_email, but for some reason the email I receive contains the EMAIL_HOST_USER as sender – which is the email of the google mail account used for sending emails. I also tried from django.core.mail import send_mail
but it´s the same. Is there any clue, how I can manage to make it work? Maybe they block to use custom email address showed as a sender?
Details: smtp.gmail.com and django.core.mail.backends.smtp.EmailBackend is used for the email backend.