Questions tagged [mailgun]

Mailgun is an online service that provides a set of APIs for sending, receiving, tracking and storing email.

Mailgun is an online service that provides a set of APIs that allow you to send, receive, track and store email.

Features:

  • HTTP API or SMTP interface.

  • Server-side MIME assembly. No libraries required.

  • Live logs and webhook event notifications.

1557 questions
17
votes
4 answers

Using Laravel's Mailgun driver, how do you (gracefully) send custom data and tags with your email?

So I'm using Laravel 5.1 and trying to integrate with Mailgun. Well, that's easy, but now I'm trying to send custom variables from my application along with my emails. I'm actually switching our application over from Mandrill because of their "new…
Captain Hypertext
  • 2,446
  • 4
  • 27
  • 36
15
votes
2 answers

Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied "

I am getting this error Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied " when I try using mailgun and laravel 7 to send emails. But I do not know what to do
Tula
  • 189
  • 1
  • 1
  • 7
15
votes
1 answer

Mailgun delivery-status 602 - too old

2 days ago I started to receive a new status code 602 from mailgun when retrieving events from its API The returned response has "delivery-status": { "attempt-no": 8, "message": "Too old", "code": 602, …
Mathias F
  • 15,906
  • 22
  • 89
  • 159
15
votes
3 answers

Sendgrid API for Ruby on Rails

I can't seem to find a step by step tutorial on how to integrate the Sendgrid web API in to a Ruby on Rails application. I'm pretty new to this so maybe I'm missing something obvious. I would like to use the Sendgrid web API instead of the smtp…
Michael Lee
  • 458
  • 1
  • 8
  • 18
14
votes
11 answers

sending mail in Laravel 5.4 using Mailgun get error code " 401 UNAUTHORIZED` response: Forbidden "

I'm trying to send mail in Laravel 5.4 project with Mailgun. I think I set the configuration correctly. But, I got this error message such as ClientException in RequestException.php line 111: Client error: POST…
White Nuzzle
  • 161
  • 1
  • 1
  • 7
14
votes
5 answers

Mailgun webhook POST body seems empty

I'am trying to handle http post message from Mailgun bounce webhook. When sending it to Mailgun's Postbin service all data is found of course. But I'm now sending that POST to my localhost server for development purposes and all I get is empty json…
Qrila
  • 143
  • 1
  • 6
13
votes
1 answer

Send attached file with Mailgun using python

I'm trying to send an email with an attached file with the Mailgun API using requests.post. In their documentation they alert that you must use multipart/form-data encoding when sending attachments, I'm trying this: import requests MAILGUN_URL =…
12
votes
5 answers

Unable to send mail via Mailgun over api or smtp

I have setup a new account and not verified my domain. I would like to test and confirm mail-send before proceeding with verification and adding payment information. I have tried curl using the sandbox method and api key (including smtp). I have…
user1055761
  • 1,071
  • 1
  • 12
  • 28
12
votes
1 answer

How to avoid Spam in Outlook/Hotmail with Mailgun?

I'm using Mailgun to send transactional emails (tickets for events) and all the emails are sent to Outlook/Hotmail spam and I want to avoid that. I have added the SPF and DKIM records and nothing works. What should I do to avoid the spam filter…
Camilo Sacanamboy
  • 630
  • 1
  • 9
  • 23
12
votes
1 answer

Mailgun: algorithm for event polling

We are implementing support for tracking of Mailgun events in our application. We reviewed the proposed event polling algorithm but find ourselves not quite comfortable with it. First, we would prefer not to discard the data that we have already…
a_k
  • 121
  • 3
12
votes
1 answer

How to configure DNS for Mailgun with same TXT and CNAME?

Mailgun is telling me to set up a TXT record for mg.mydomain.com with a value of v=spf1 ... plus a CNAME record for email.mg.mydomain.com with value mailgun.org. I did that, and mailgun verified my domain no problem. The issue is when I send emails,…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
12
votes
2 answers

Receive (not forward) e-mail using Mailgun

I want to use Mailgun to send/receive messages programatically via API. BUT I need to have also some mailboxes available using Thunderbird or other mail client. For example I want to have user mailboxes at: support@ sales@ admin@ And all other…
Komi Dumity
  • 198
  • 1
  • 9
12
votes
9 answers

Mailgun Sent mail With attachment

I am facing issue when mail having attachment sent using mailgun. If anyone has done this thing please reply. This is my code... $mg_api = 'key-3ax6xnjp29jd6fds4gc373sgvjxteol0'; $mg_version = 'api.mailgun.net/v2/'; $mg_domain =…
TechCare99
  • 1,763
  • 6
  • 24
  • 33
11
votes
3 answers

Laravel 5.5 mailgun not sending emails - no errors

I am trying to send emails with mailgun but they won't send and I have no idea why because i don't get any errors at all. This is my code: mail.php: 'driver' => env('MAIL_DRIVER', 'mailgun'), services.php: 'mailgun' => [ 'domain' =>…
Luuk Wuijster
  • 6,678
  • 8
  • 30
  • 58
11
votes
2 answers

Errors sending emails via mailgun

A few of the emails being sent from my account are getting rejected. These are the error messages: Server response: 550 550 Requested action not taken: mailbox unavailable invalid DNS MX or A/AAAA resource record From: Domain is invalid. Please…
vgoklani
  • 10,685
  • 16
  • 63
  • 101