I am new to django and trying to use django emailer. I have provided the following settings for mail in settings.py :
EMAIL_USE_TLS = True
EMAIL_HOST='smtp.gmail.com'
EMAIL_HOST_USER='ant@a.com'
EMAIL_HOST_PASSWORD='******'
EMAIL_PORT = 587
I have defined one view in my views.py
as following:
def testemail(request) :
subject="test email"
message="hello sid"
reply_to_list=['abc@gmail.com','def@gmail.com']
send_mail(subject,message,'ant@a.com',reply_to_list,fail_silently=True)
I have registered this view in url.py
as:
url(r'^testemail/',email_views.testemail,name="testemail")
But after hitting the url I get the following error:
send_mail() got an unexpected keyword argument 'fail_silently'
Any idea why I'm getting this error?