mailgun

How to send out HTML email with mailgun?

老子叫甜甜 提交于 2019-12-03 16:55:51
问题 after failed to find a solution for my problem in the mailgun documentation, I will explain what I'm looking for. Today I'm using phpList to send out my newsletter (It works perfect!), I have HTML pages that I just include in the phpList application to send it out. (I'm using SMTP method to send news out). I wonder if I can do the same with mailgun (for sure can, but how?), is it possible to just include the path of my HTML pages to send it out? (I do not have interest to type my html code in

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

大憨熊 提交于 2019-12-03 10:58:38
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 direction" and such. With them, I could supply the variables and tags via the email headers, but with Mailgun, that only works when you send via SMTP. In Laravel, Mail::send() uses an API call, so in theory I'd add the metadata there with "v:my-custom-data" => "{"this_id": 123}" , but I'd like to avoid altering core classes like that. I also

Using Mailgun RestFUL's on client-side

非 Y 不嫁゛ 提交于 2019-12-03 08:50:43
I am attempting to build an anonymous customer feedback form which forwards the content to an email address. I've been looking into Mailgun ( http://documentation.mailgun.com/api-sending.html ), but I am confused where I could put in my API key. I am attempting to make a POST request with jQuery, could someone point me to an example of sending an email? superEb According to the Authentication section of Mailgun's API Intro , they require Basic Auth, which is accomplished in code by adding the following HTTP header: Authorization: Basic base64($username:$password) For Mailgun, they mention

How to send mail only to bcc with mailgun php API?

做~自己de王妃 提交于 2019-12-03 07:28:12
I am trying to send mail only to Bcc but unable to send. Code given below is working fine with To and Bcc but when i try to send only with Bcc it fails. I tried passing empty string with To but didnt work. I am using mailgun php API. function send_mail($email,$subject,$msg,$bcc) { $api_key=""; $domain =""; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, 'api:'.$api_key); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_URL, 'https://api.mailgun.net/v2/'.$domain.'

Sending emails using Mailgun with NodeMailer package

自闭症网瘾萝莉.ら 提交于 2019-12-03 06:56:17
问题 A couple of days ago I realized that Google has changed the security of gmail accounts, particularly for the possibility of sending emails from applications. After Googling around for a while I couldn't find a fix for it. So, I resorted to using Mailgun. I created an account and had it enabled with Business verification. However, I still can't send emails. I keep getting an error about the requested URL not being found. I am suspecting that since I haven't set up a domain yet, it is not

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

馋奶兔 提交于 2019-12-03 06:52:39
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, certain receiving mail servers are rejecting my emails with message "Sender address rejected: Domain not found". I'm pretty sure this is because "mg.mydomain.com" doesn't exist -- I don't have a CNAME for it. However, I can't create a CNAME for it because it's already used for the TXT record. So now I don't know what to do. Can I put this v=spf1

How to send out HTML email with mailgun?

我怕爱的太早我们不能终老 提交于 2019-12-03 05:15:23
after failed to find a solution for my problem in the mailgun documentation, I will explain what I'm looking for. Today I'm using phpList to send out my newsletter (It works perfect!), I have HTML pages that I just include in the phpList application to send it out. (I'm using SMTP method to send news out). I wonder if I can do the same with mailgun (for sure can, but how?), is it possible to just include the path of my HTML pages to send it out? (I do not have interest to type my html code in the script, it must be in the path otherwise I have no interest in use mailgun). Take a look to my

Using PHP Curl and Mailgun API to send mail with attachment using remote file

≯℡__Kan透↙ 提交于 2019-12-02 21:31:32
问题 I'm using the Google App Engine (GAE) for PHP, and I'm trying to use the Mailgun API to send a message with an attachment using CURL. The attachment is on Google Cloud Storage (because there are limitations on GAE for writing and reading files on a local filesystem). So what I'm doing is using a temporary file instead. Here's my code so far: $url_str = 'https://api.mailgun.net/v3/es.restive.io/messages'; $auth_user_str = 'api'; $auth_pass_str = 'key-my-unique-key'; $post_data_arr = array(

Removing 'on behalf of' when sending mail using MailGun

五迷三道 提交于 2019-12-02 19:10:01
I'm trying to figure out how to send mails using the MailGun Golang API without having it sent 'on behalf of'. This is how the From address currently looks (where foo.com is the sender's email domain and bar.com is my domain): john=foo.com@mail.bar.com on behalf of John Smith <john@foo.com> What do I need to do so that it looks like this instead: John Smith <john@foo.com> I've set up SPF and DKIM according to the MailGun instructions and everything passes as being correct. I've also used SetDKIM(true) when I'm sending out the mail. Is there some setting I'm missing or additional validation I

Mailgun: Messages “Accepted” but taking long time to be delivered (or not being delivered)

不羁的心 提交于 2019-12-02 18:58:51
I'm using Mailgun for a site I maintain, usually Mailgun works great, but I am encountering a strange problem. My script calls the HTTP API to send messages using Mailgun, these then show up in my log as being "accepted", but then take a very long time to be "delivered", often failing to be delivered at all and simply remaining as "accepted". Has anyone experienced a similar error or could anyone suggest a way to fix it? I'm guessing it's in the arguments supplied to the API but I can't for the life of me figure out the problem. The problem exists for different recipient domains and different