1👍
In your send_mail section, you need to refer to the list, instead you’re referring to strings, that aren’t defined…
Change it to this and it should work:
from django.core.mail import send_mail
from django.conf import settings
subject = 'Where is the fault'
from_email = settings.EMAIL_HOST_USER
to_email = [from_email , 'otheremail@email.com']
contact_message = "%s: %s via %s" % (
form_full_name ,
form_message ,
form_email)
send_mail(
subject,
contact_message.,
from_email,
to_email,
fail_silently=False,
)
👤Tim
Source:stackexchange.com