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)
Please follow and like us:
Menu
🎁 Lighting Deal - Up to 20% OFF | Making Email Marketing Affordable!!! GET OFFER CODE!
🎁 Lighting Deal - Up to 20% OFF | Making Email Marketing Affordable!!! GET OFFER CODE!