Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
- EMAIL_HOST = 'smtp.example.com'
- EMAIL_HOST_USER = 'Admin@example.com'
- EMAIL_HOST_PASSWORD = '***********'
- EMAIL_PORT = 25
- EMAIL_USE_TLS = True
- msg = "Hi,this is testing mail."
- try:
- send_mail('Appointment mail',msg,'',['user@example.com'])
- response = 'Message sent successfully.You will receive response in very soon.Thank you.'
- except Exception as e:
- response = e
- return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement