4
7 Comments

Which Email API with Django backend to write newsletter?

How do you currently write an email newsletter? I currently use Django's good-old EmailMessage with HTML template and Gmail and loop over users that have subscribed to the newsletter. It works but doesn't give me access to all the fancy analytics plus smtp server limits.

  1. 2

    Check out anymail which allows you to use standard Django email tools to integrate with a bunch of different backends. I personally use Mailgun, but you can use Amazon SES, or any of their other supported ones!

    1. 1

      Cool thanks, I like mailgun's flexible pricing. I also want to include clickable survey in the emails - how would you do that?

      1. 2

        In addition to @pplonski 's answer you can look into email providers that offer this built-in (I know Mailchimp has it), or you could just link to an external survey tool, e.g. Google forms or Typeform. I personally don't like rolling my own surveys in Django when there's so many off-the-shelf options, but it depends what you plan to do with the data!

        1. 1

          Thanks @pplonski and @czue . I went with Google forms and answer coded in URL

      2. 2

        You create the survey answers as links to the server with answer coded in URL. When user clicks the link she is redirected to the server website.

      3. 1

        This comment was deleted 4 years ago.

  2. 1

    Hey Markus!
    You’d use a queue to manage several pools of emails at once. Did you try using celery?

    1. 1

      Thanks, I'm using celery for other asynchronous jobs. Celery just to address smtp server limits or any other reason to use it here?

Trending on Indie Hackers
I've built a 2300$ a month SaaS out of a simple problem. 19 comments 🔥 Roast My Landing Page 11 comments Where can I buy newsletter ad promos? 8 comments Key takeaways growing MRR from $6.5k to $20k for my design studio 6 comments How would you monetize my project colorsandfonts? 5 comments YouTube? How to start 5 comments