You are here:
< Back

Django

There is more detailed information about sending an email over SMTP with Django on the Django project website.

Firs,t start by adding the following to settings.py:

EMAIL_HOST = 'smtp.swipemail.in'
EMAIL_HOST_USER = 'mail250_username'
EMAIL_HOST_PASSWORD = 'mail250_password'
EMAIL_PORT = 2525
EMAIL_USE_TLS = False

Then to send the email you can do the following:

from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', 'from@example.com', ['to@example.com'], fail_silently=False)
Menu
During this difficult period, keep people safe and informed. We are enabling 30% of additional discount for all new users. Offer Code: CORONA30
Lighting Deal - Up to 30% OFF | Making Email Marketing Affordable!!! GET OFFER CODE!