How to send re-sent letters to mailgun

How to send re-sent letters to mailgun?

I use mailgun to send emails in my application, but some emails are discarded. Is there any way to send sent emails?

+6
source share
4 answers

Mailgun has now released this as a new feature in both its control panel and through their APIs . But it is available only for messages that have an associated event type delivered "or" permanent failure ", and also no more than 3 days.

API:

API , .

:

"" . Mailgun Logs. cog , "Resend Message"

enter image description here

, .

enter image description here

+8

, , . , 5 .

: API , JSON. , , , .

Mailgun API-.

+5

, Mailgun , script . :

1) https://api.mailgun.net/v3/{domain}/events?event=rejected+OR+failed

2) , :

  "storage": {
    "url": "https://se.api.mailgun.net/v3/domains/{domain}messages/{some-key}", 
    "key": "some-key"
  }

3) URL- . , , : to, from, subject, body-html, reply-to, attachments .

4) , Mailgun: https://api.mailgun.net/v3/{domain}/messages

When I have time, I will clean up the implementation of this C # and open source on GitHub.

+4
source

Why will email be deleted? I do not understand the reason for this?

0
source

Source: https://habr.com/ru/post/1607665/


All Articles