Questions tagged [django-anymail]

Questions about using the django-anymail package to send, track or receive email through an email service provider (ESP) from a Django web application .

PyPI

django-anymail is an open-source Python package that integrates several transactional email service providers (ESPs) into the Django web application framework.

Anymail provides Django EmailBackends for sending mail through an ESP, Django webhook views for tracking status of sent messages, and webhooks for receiving inbound mail from the ESP.

Asking questions

The tag is appropriate for questions about using Anymail and integrating one of its supported ESPs with a Django application. For questions about Django's built-in SMTP email, use the tag instead.

When asking a question here:

Resources

22 questions
3
votes
1 answer

Amazon SES with Django not in UTC timezone

I'm developing a django project for use in America, specifically the New York timezone and the system is hosted on AWS, with SES sending email. The email backend is using django-anymail which is a simple wrapper for SES and the system uses send_mail…
markwalker_
  • 12,078
  • 7
  • 62
  • 99
3
votes
1 answer

Django password reset not working with django-anymail

I'm trying to implement django-anymail with my site, and am having trouble. Using these settings: ANYMAIL = { "MAILGUN_API_KEY": "key-hahahahahahahahhaha... no", } EMAIL_BACKEND = "anymail.backends.mailgun.MailgunBackend" DEFAULT_FROM_EMAIL =…
user764357
2
votes
2 answers

Using environment variables from .env in Django Celery

I'm using Django 2.x and Celery 4.3.x In my Django application, I'm using dotenv to serve environment variable from .env file and to load the environment variable, I have following script in the manage.py and wsgy.py files env_file =…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
1
vote
2 answers

Getting this error when tried to install using pip install anymail

ERROR: Could not find a version that satisfies the requirement anymail (from versions: none) ERROR: No matching distribution found for anymail Can anyone help me with this
1
vote
1 answer

Django Mailgun API returning 401 forbidden

I've installed Django any mail and am I trying to use mail gun with it for password resets. I've added any mail to my installed apps and tried to use mail gun as an API or smtp service. Both return back 401 forbidden For using mail guns API here's…
1
vote
1 answer

"Mailgun Magnificent API" error with Django-Anymail in docker on Digital Ocean

I am running a django application running on docker and I am using django-anymail to send emails via mailgun. When I go through for example a forgot my password process I am getting an error in django-anymail: AnymailRequestsAPIError: Invalid…
Chris Wedgwood
  • 660
  • 6
  • 11
1
vote
0 answers

Testing Anymail webhook locally, unable to receive signal

I am trying to test my setup for Anymail (using Mailgun) webhooks. Currently using https://ngrok.com/ which redirects an HTTPS address to a local address to properly handle localhost:80 addresses. Mailgun allows to send test requests to a webhook,…
PepperoniPizza
  • 8,842
  • 9
  • 58
  • 100
1
vote
1 answer

AnyMail not sending an email in a Django test, despite that mail.outbox is empty?

I'd like to write a Django unit test which tests that an email is sent without actually sending it (as described in https://docs.djangoproject.com/en/2.0/topics/testing/tools/#email-services), but can also be configured to send an actual email (to…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
1
vote
1 answer

Django + Anymail + Mailgun: Scheduling email delivery

Mailgun supports scheduling emails at a later date in the future, but how does one take advantage of this through Anymail? Anymail provides a wrapper over Mailgun functionality and supports Mailgun-specific features like recipient variables. But how…
Will
  • 1,171
  • 2
  • 14
  • 26
1
vote
1 answer

Django and Mailgun : 552 sorry, your envelope sender domain must exist (#5.7.1)

I'm trying to send mail using Django and Mailgun through the Anymail package and with an OVH server. I'm currently receiving the 552 sorry, your envelope sender domain must exist (#5.7.1) error. In this question/answer, it is suggested that I would…
Brachamul
  • 1,886
  • 2
  • 21
  • 34
1
vote
1 answer

Anymail Mailgun Error

I am trying to integrate django-anymail with mailgun. When I send a mail with django send_mail as send_mail('Testing', 'Test dsadsadsa asdsa body', 'xyz@mailinator.com', ['xxxx@gmail.com']) It gives an error: AnymailRequestsAPIError: Sending a…
kaushikdr
  • 1,699
  • 2
  • 12
  • 18
0
votes
1 answer

How to send emails from django shell with AWS ses?

I have verified my domain with AWS SES and as a result my site successfully does send password verification emails (via allauth). I would, however, also like to be able to send emails based on local scripts. To do this I have been using django…
RobMcC
  • 392
  • 2
  • 7
  • 20
0
votes
0 answers

How to save all incoming emails to a model

I want to save all incoming emails to a django model. django-mailbox has an email table but is inactive. django-anymail's AnymailInboundMessage looks like it would work well but it is not a django model class, just a generic python object for…
0
votes
0 answers

Setting up aws ses with django site hosted on elastic beanstalk

I am attempting to use amazon ses to send user verifcation emails for a django site deployed using elastic beanstalk. I have allauth managing the user sign up, and using anymail to manage the emails. I have successfully completed the DKIM setup at…
RobMcC
  • 392
  • 2
  • 7
  • 20
0
votes
1 answer

AnyMail and MailGun configuration on Django

I'm setting AnyMail + MailGun on a Django project, but I'm getting an unauthorized response calling mail_admins: anymail.exceptions.AnymailRequestsAPIError: Sending a message to mail@gmail.com from…
Luis Batista
  • 49
  • 2
  • 2
  • 15
1
2