mailgun

How To Pass Mailgun ID create in MailgunTransport to an Event Listener, in Laravel?

…衆ロ難τιáo~ 提交于 2020-01-05 07:15:20
问题 In my Laravel application, I have an Event Listener that triggers when someone is added to a course, then emails that user "You've been added to course". I am using Mailgun to send these emails, and in this Listener, I call \Mail which builds a blade file and sends the email to the users, which all works fine. My issue is I want to store that Mailgun ID. Which in Laravel v6 gets added in Illuminate\Mail\Transport\MailgunTransport@send and I can access that ID by calling $message->getId()

Gettin the pfx for an app to use in Mailgun and parse server

廉价感情. 提交于 2020-01-05 04:24:33
问题 I'm trying to use mailgun to send verification emails and recover passwords from Parse Server (working on AWS) and it's been a real pain since I don't know anything about node.js. I'm using this adapter and following this post but I'm having problems to fill this info: push: { ios: [ { pfx: 'FILE.p12', // Dev PFX or P12 bundleId: 'BUNDLE', production: false // Dev }, { pfx: 'FILE.p12', // Prod PFX or P12 bundleId: 'BUNDLE', production: true // Prod } ] }, I understand that the pfx is a

Sending Email with Mailgun via HTTP Request using Curl

孤街醉人 提交于 2020-01-05 04:18:11
问题 I am having some issue running the api to send email with attachment via Mail Gun.I tried to run the api via postman and it runs perfectly fine so i know there is no problem with the api but i am unable to send a request via code. I have added a code sample below: <?php $curl_post_data=array( 'from' => 'Excited User <noreply@test.com>', 'to' => 'test@gmail.com', 'subject' => 'Hello', 'text' => 'test' //,'attachment[1]' => '@https://www.smsglobal.com/docs/HTTP-2WAY.pdf' ,array( 'attachment' =>

How to work with Mailgun API in CodeIgniter; Forbidden error in curl_exe()

試著忘記壹切 提交于 2020-01-02 20:17:32
问题 I am working on CodeIgniter, I am using Mailgun API to send the emails.But I am getting FORBIDDEN while echoing curl_exe() as shown in code: <?php Class Email3 extends CI_Controller { function __construct() { parent::__construct(); } function index() { $ua = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13'; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, 'my-api-key');

Mailgun + AngularJS + Auhtentication for http post request

南楼画角 提交于 2020-01-01 17:21:31
问题 I am trying to convert below sample code in angular request. https://documentation.mailgun.com/user_manual.html#sending-via-api curl -s --user 'api:YOUR_API_KEY' \ https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \ -F from='Excited User <mailgun@YOUR_DOMAIN_NAME>' \ -F to=YOU@YOUR_DOMAIN_NAME \ -F to=bar@example.com \ -F subject='Hello' \ -F text='Testing some Mailgun awesomness!' I have tried below with Authorization headers which still comes back with Unauthorized error. I see request

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

浪子不回头ぞ 提交于 2020-01-01 04:13:47
问题 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

Mailgun API works only with one email

让人想犯罪 __ 提交于 2019-12-31 01:14:05
问题 I'm making email subscription form with PHP and Mailgun API, but I only get email to my main email address which I used for account creation at mailgun.com. When I fill the form with that email, I get the confirmation letter, but it doesn't work with other emails. Why is so? This is the code: Init file: <?php require_once 'vendor/autoload.php'; define('MAILGUN_KEY', 'key-2ce40f5e23c90b0d666f3e....'); define('MAILGUN_PUBKEY', 'pubkey-8cf7125996....'); define('MAILGUN_DOMAIN',

Swift Send Email with MailGun

耗尽温柔 提交于 2019-12-30 11:00:13
问题 Problem I would like to use the MailGun service to send emails from a pure Swift app. Research So Far As I understand it, there are two methods to send an email via MailGun. One is to email MailGun with the emails, and MailGun will redirect it (See Send via SMTP ). That will, as I understand it, not work, as iOS cannot programatically automatically send mail, and must use methods that require user intervention. As such, I should use the API directly. As I understand it, I need to open a URL

Sending Email With Swift [closed]

北城余情 提交于 2019-12-28 08:07:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . how would you send an email with swift in an app. Like say for example your user want's to reset their password in a social media application with Parse(or not), but you don't wan't to use MessageUI because you want it to be automatic. I've done some research and found out that it

Error sending html email with mailgun python API

元气小坏坏 提交于 2019-12-24 21:26:31
问题 I can send text email with the Mailgun python API fine: def send_simple_message(mailtext, filename=""): requests.post("https://api.mailgun.net/v3/mydomain.in/messages", auth=("api", "key-1234"), files=[("attachment", open(filename))], data={"from": "Credit Card Manager <creditcards@mydomain.in>", "to": ["bob@mydomain.in"], "subject": "Summary of Credit Card payments due", "text": mailtext}) The above code works fine, and message is delivered. However when I try the following, using an html