Open yutotakano opened 7 months ago
I believe sanitizing the field to get only the actual email (as mentioned in line 41's comment) would solve it. Maybe #5 might as well?
Added new setting for this in #5
I've created djau-gsuite-email for test
pip install djau-gsuite-email
I have made a rc release, do check this out with
pip install django_gsuite_email==0.2.0rc1
v0.2.0 will have this
Heya, thanks for the library! Just want to report a feature request.
The current implementation uses the
from_email
field of asend_mail
call and uses it both for the email 'From' field and the GSuite impersonation subject.Unfortunately this means that if we try to set a display name for the From field, like
No Reply <noreply@domain.com>
, we get an Invalid Impersonation error.I think what should be done is that that the email's display name should be kept for the 'From' field but removed for the GSuite subject, or somehow supply a different field.