labcodes / knowledge

2 stars 0 forks source link

Django anymail #63

Closed renatooliveira closed 6 years ago

renatooliveira commented 6 years ago

Change email settings to use Django-anymail. Had to update django due to anymail compatibility.

Make sure you have MAILGUN_API_KEY on your .env

To test:

from django.core.mail import send_mail

send_mail("It works!", "This will get sent through Mailgun",
          "Anymail Sender <from@example.com>", ["to@example.com"])