mailgun

Python requests: trying to make Mailgun “Sending Inline Images” sample work

人走茶凉 提交于 2019-12-11 02:29:07
问题 I'm stuck with example from http://documentation.mailgun.com/user_manual.html?highlight=inline%20image#sending-via-api UPD: Problem below occurs on virtual machine, while it works on another. import requests requests.post( "https://api.mailgun.net/v2/samples.mailgun.org/messages", auth=("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"), files=[("inline", open("files/test.jpg"))], data={"from": "Excited User <me@samples.mailgun.org>", "to": "bar@example.com", "subject": "Hello", "text": "Testing

Mailgun sending AND receiving using wildcard subdomains

狂风中的少年 提交于 2019-12-11 00:58:59
问题 I want to be able to send from foo@*.mydomain.com AND receive responses without needing to manually setup MX records for each subdomain I'm interested in (bar.mydomain.com, baz.mydomain.com, etc.mydomain.com , ...) Mailgun docs show a setting on a domain called wildcard labeled "Mailgun allows you to receive email at multiple subdomains of a single domain without actually adding them. You still need to add the appropriate MX records for your subdomain(s) at your DNS provider" in the web ui. A

ActionMailer responds with “501 5.5.4 Invalid argument”

∥☆過路亽.° 提交于 2019-12-10 22:24:38
问题 I'm working on an application with Rails 4 on Ruby 2.0.0. The application sends out an email after a registration in Devise. This is the code that sends the email: app/models/sponsor.rb: after_create :send_email_to_admin private def send_email_to_admin AdminMailer.new_sponsor_email(self).deliver end app/mailers/admin_mailer.rb class AdminMailer < ActionMailer::Base default to: '**removed**' def new_sponsor_email(sponsor) @sponsor = sponsor p @sponsor mail(subject: "New Sponsor Registration")

Mailgun webhooks: “HTTPS certificate validation failure” after renewing SSL certificte

我的未来我决定 提交于 2019-12-10 18:37:45
问题 Shortly after we renewed our SSL certificate on Heroku, all Mailgun webhooks (post requests made by Mailgun to our endpoint so that we can track email deliveries) started failing with the error "Could not connect to remote server: HTTPS certificate validation failure". How could we check whether this issue might be caused from misconfiguration of our SSL certificate rather than an issue on Mailgun's side? Here are the details of steps we took to renew and install the certificate: We followed

cURL error 35: Unknown SSL protocol error in connection to api.mailgun

强颜欢笑 提交于 2019-12-10 16:19:52
问题 All of a sudden I have started getting this mailgun error , GuzzleHttp \ Exception \ RequestException cURL error 35: Unknown SSL protocol error in connection to api.mailgun.net:443 Any Mail gun user please help me out Thanks 回答1: I have been having the same issue with Laravel 4.2 and Mailgun. I have contacted MG they are blaming this error on DDoS attacks they have been having. I included this thread in my latest support ticket. If you have any useful information to help them please include

How to send batch/mass emails with attachments using mailgun?

梦想与她 提交于 2019-12-10 15:48:27
问题 I want to send batch emails with attachment. I can send the batch emails by attaching the same file to all the emails. But I need to attach different files to different emails by adding file path in recipient variables. I can't see anything related in the official documentation of mailgun. Here is my code : # Instantiate the client. $mgClient = new Mailgun('key-****'); $domain = "foo.bar.com"; # Make the call to the client. $result = $mgClient->sendMessage($domain, array( 'from' => 'gido@foo

How to fix '413 Request Entity Too Large' error in Node.js

浪子不回头ぞ 提交于 2019-12-10 12:11:11
问题 I am attempting to allow users to upload several images to my website which will then get emailed to all users as attachments but I am coming across an error stating the file size is too large. I am using Mailgun to send the mail, Cloudinary to upload/store the images, MongoDB as my database, request.js to request the images, Cloud 9 to develop in, and Node.js/Express as my backend. The user process goes like this: User submits pictures onto the site Pictures are uploaded via Cloudinary and

Mailgun sendMessage parameter exception

这一生的挚爱 提交于 2019-12-10 10:25:17
问题 Why is the function sendMessage() throwing an exception here? $mg = new MailGun('my_actual_api_key'); $response = $mg->sendMessage('my-domain.com', array( 'from' => 'real@email.com', 'to' => 'real@email.com', 'subject' => 'Test', 'html' => '<h1>Test body</h2>' )); ...and the exception I am getting is... Fatal error: Uncaught exception'Mailgun\Connection\Exceptions\MissingRequiredParameters' with message 'The parameters passed to the API were invalid. Check your inputs!' in C:\wamp\www\sektor

Send email from my custom mailgun SMTP address

柔情痞子 提交于 2019-12-10 00:40:36
问题 Sorry if I have not understood something but (I believe) I have searched enough for this. First things first: I have successfully set up my domain ( mydomain.gr ) which has been verified. I have created a custom SMTP address ( contact@mydomain.gr ). I have created a route which forwards everything sent at *@mydomain.gr to my personal Gmail address. Test 1: If I send an email from an external address (something@something.eu) to contact@mydomain.gr it is forwarded to my personal Gmail. OK! Test

Using Mailgun RestFUL's on client-side

旧城冷巷雨未停 提交于 2019-12-09 07:03:30
问题 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? 回答1: According to the Authentication section of Mailgun's API Intro, they require Basic Auth, which is accomplished in code by adding the