markwalker,
@markwalker@fosstodon.org avatar

Using Anymail to send mail through Mailgun & headers don't exist in the received email, but they're there in django 🤔

The only one that gets through is "X-Mailgun-Tag". It's as if they strip the rest.

#django

markwalker,
@markwalker@fosstodon.org avatar

Switching to Anymail sorted it. So looks like the custom mailgun backend doesn't work with the current API or does support extra headers.

markwalker,
@markwalker@fosstodon.org avatar

Today I will be switching all projects to Anymail. Any django project that isn't sending email with Anymail sould strongly consider this move as well.

#django #python

lil5,
@lil5@fosstodon.org avatar

@markwalker cool, I found this from them but no email sending tool am I missing it?

https://anymailfinder.com/

markwalker,
@markwalker@fosstodon.org avatar

@lil5 Sorry, some degree of assuming people know what I'm on about there. It's a django package with an API to basically all services (and SMTP)

https://anymail.dev/en/stable/

CodenameTim,
@CodenameTim@fosstodon.org avatar

@markwalker does mailgun show you the sent email or the API request?

markwalker,
@markwalker@fosstodon.org avatar

@CodenameTim Yeah I get the email, and can see it in mailgun. But it's not got any headers besides the mailgun tag

I'm just switching the mail backend over to anymail as it looks like this project has a custom mailgun backend. Will see if that helps.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • django
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines