Best way to deal with members registration in Django apps

25 views
Skip to first unread message

Ram

unread,
May 25, 2021, 1:04:03 AM5/25/21
to django...@googlegroups.com
Hi,

We have members registration module where members will enter email ID as a login name. Upon submitting the Sign Up form, we generate an email to the given email address using Sendmail code that we added in our Django project. 

So far we used a personal gmail account as an admin email account to generate and send emails to registered members ( as shown below)

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'  # added by me
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'xxa...@gmail.com'
EMAIL_HOST_PASSWORD = '122hhhlll'
EMAIL_USE_TLS = True

but we need to move on to next step on our development and production servers to have a real time admin email to handle member registrations and further communication with members, like sending newsletters and some important security notifications.

Could you please suggest what you been using with zero issues in your Django application?

Best regards,
~Ram


Antonis Christofides

unread,
May 25, 2021, 2:18:17 AM5/25/21
to django...@googlegroups.com

using Sendmail code that we added in our Django project

You really added sendmail code to your Django project? Or did you configure your Django project to use sendmail?

There is no single answer to what you are asking. What I do, and I also propose to people to do, is:

  • Use a small forward-only local name server, namely the DragonFly Mail Agent or dma.
  • Use an external service like Runbox or mailbox.org as a mail server. I think that paid Google mail accounts will also work.

As for regularly emailing members, again I'd use an external service such as mailchimp, but I have no experience integrating such a service with a Django app.

Antonis Christofides
+30-6979924665 (mobile)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F0C17vnf4vEvZgMYha0b2XB49iZpJ4UzqKb56-Tmar-cQ%40mail.gmail.com.

Kelvin Sajere

unread,
May 25, 2021, 3:37:19 AM5/25/21
to django...@googlegroups.com
If your app just sends email upon registration or just configured to send mail generally and you would like to use an email with your production domain like in a production setting, then you only need to change the email configuration in your settings.py file to reflect your domain email. For example, get your production domain, www.example.com, create an email account under that domain name, e.g sup...@example.com, then use this as your default email in your settings.py file. Typically your Email Host would just be your domain name, the port for HTTPS would be the same, but the settings would most likely be shown to you from wherever you are hosting the domain from.

--
KeLLs
Reply all
Reply to author
Forward
0 new messages