Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resend dropped emails in mailgun

How to resend dropped emails in mailgun?

I am using mailgun to send mails in my application,but some mails are dropped. Is there any method to resend the dropped mails?

like image 815
Nandakumar R Avatar asked Sep 16 '15 14:09

Nandakumar R


People also ask

Does Mailgun save emails?

Internally, we store messages for 3 days for scheduled sends, troubleshooting and compliance verification. We're happy to announce that we have exposed this feature in our events API! # View a message using it's Mailgun storage key.

How many emails can Mailgun send?

5,000 messages/month are included. There is a limit of 300 messages per day on the included sandbox domain. Data retention for Logs and the Events API is 1 day.

Does Mailgun send SMS?

TextMagic, also a Mailgun customer, allows you to send notifications, alerts, reminders, confirmations and SMS marketing campaign messages to your customers, staff members and suppliers. On average, TextMagic customers are sending over 2.5M text messages around the world each month.


1 Answers

You can resend a message with Mailgun via their control panel and through their API. But it's only available for messages that have an associated event-type of "delivered" or "permanent fail" and are also not more than your domain's message retention period (3 days for most, I think).

API:

See their docs:

curl -s --user 'api:YOUR_API_KEY' \
    https://se.api.mailgun.net/v3/domains/YOUR_DOMAIN_NAME/messages/STORAGE_URL \
    -F to='[email protected]'

Control Panel:

The Logs page allows for the resending of individual messages directly within the UI. Simply login to your Mailgun account and go to the Logs tab. Click the dropdown menu cog of any qualifying message and you'll see an option in the menu called "Resend Message"

enter image description here

Clicking that will cause a little popup to appear where you can enter a single recipient address.

enter image description here

like image 146
jhaskell Avatar answered Oct 02 '22 19:10

jhaskell