Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  2. EMAIL_HOST = 'smtp.example.com'
  3. EMAIL_HOST_USER = 'Admin@example.com'
  4. EMAIL_HOST_PASSWORD = '***********'
  5. EMAIL_PORT = 25
  6. EMAIL_USE_TLS = True
  7.  
  8. msg = "Hi,this is testing mail."
  9. try:
  10. send_mail('Appointment mail',msg,'',['user@example.com'])
  11. response = 'Message sent successfully.You will receive response in very soon.Thank you.'
  12. except Exception as e:
  13. response = e
  14. return response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement