mailgun

How to avoid Spam in Outlook/Hotmail with Mailgun?

天大地大妈咪最大 提交于 2020-06-24 08:29:50
问题 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 (actually, I'm not sending spam. The user triggers the transactional email when he register to an event) Client client = Client.create (); client.addFilter ( new HTTPBasicAuthFilter ( "api", "MI_API_KEY" ) ); WebResource webResource = client .resource

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

落花浮王杯 提交于 2020-06-11 21:39:31
问题 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 https://api.mailgun.net/v3/sandboxfeb88d58f18841738b2fc81d7cbc7631.mailgun.org/messages.mime >resulted in a 401 UNAUTHORIZED response: Forbidden Here is my configuration: in .env file MAIL_DRIVER=mailgun MAILGUN_DOMAIN=sandboxfeb88d58f18841738b2fc81d7cbc7631.mailgun.org MAILGUN_SECRET

Cloud9 and ActionMailer / Mailgun?

久未见 提交于 2020-01-25 03:43:07
问题 I hope you can lend me a hand with this! I used to develop locally, but I'm abroad and I'm using Cloud9 to work with some projects. Currently, It's giving me a hard time with Action Mailer. My ActionMailer Initializer: ActionMailer::Base.smtp_settings = { port: '2525', address: 'smtp.mailgun.org', user_name: ENV['MAILGUN_SMTP_LOGIN'], password: ENV['MAILGUN_SMTP_PASSWORD'], domain: 'app07ad98bdda3b4c469a24228512cffe5c.mailgun.org', authentication: :plain, content_type: 'text/html' }

Sending E-Mail through firebase functions

早过忘川 提交于 2020-01-21 15:13:25
问题 Its there a way to use an API like(sendgrid, mailgun) to send Email through Firebase cloud functions or it is considered as an Outbound connection? 回答1: Assuming you're asking because you're on the free Firebase plan. As explained on the Firebase pricing page: The Spark plan allows outbound network requests only to Google-owned services. Luckily, there is a Google-owned service that allows mail sending; Gmail! There is a quick-start sample available or a related StackOverflow answer, but the

Using Lift-Json with Case Classes

倾然丶 夕夏残阳落幕 提交于 2020-01-16 18:05:51
问题 I can't seem to write proper case classes for this particular Json payload. I believe it has something to do with the first index in the array, which doesn't have a key string. Any ideas on how to remedy this? For reference, I am using Scala 2.10.4, Akka 2.3.2, Spray 1.3.1 and Lift-Json 2.6. The Json I am attempting to extract is from Mailgun's Events API. Edit: the core question is how do I extract to a case class with no key in the Json? My code follows: import net.liftweb.json._ case class

Mailgun changed links in my email

大城市里の小女人 提交于 2020-01-14 04:04:03
问题 I'm using the php framework Laravel to send emails with mailgun to a certain list. The emails get delivered all the links got changed to email.mg.mydomain/c/.... for some reason everything is fine in the view i sent. After sending some emails there were alot of drops and bounces from mailgun so my domain got disabled - could this be the reason? I use open and click tracking. Here is my code for sending $client = new \Http\Adapter\Guzzle6\Client(); $mgClient = new Mailgun('key-notmyrealkey',

Mailgun changed links in my email

懵懂的女人 提交于 2020-01-14 04:03:46
问题 I'm using the php framework Laravel to send emails with mailgun to a certain list. The emails get delivered all the links got changed to email.mg.mydomain/c/.... for some reason everything is fine in the view i sent. After sending some emails there were alot of drops and bounces from mailgun so my domain got disabled - could this be the reason? I use open and click tracking. Here is my code for sending $client = new \Http\Adapter\Guzzle6\Client(); $mgClient = new Mailgun('key-notmyrealkey',

Send email with Mailgun in angular

自古美人都是妖i 提交于 2020-01-06 15:25:08
问题 This is my code: function sendEmail(){ return $http.post('https://api:<MY SECRET API KEY>@api.mailgun.net/v3/<DOMAIN>/messages', { from: "hello@<DOMAIN>", to: 'test@mail.com', subject: "Subject text", text: "Body text" }).then(function(data){ return data; }, function(error){ //manage error }) } This is giving me a 401 Unauthorized error UPDATE: I have find this post where it's fixed --> Mailgun + AngularJS + Auhtentication for http post request In my case, multipart is not needed. 回答1: Looks

Sending emails with Mailgun occasionally hangs and doesn't send email

十年热恋 提交于 2020-01-05 12:58:35
问题 So ive just implmented mailgun into a website for sending contact form info. This works some of the time, but mostly the page hangs when i press send with the message "waiting for url ..." in the bottom left of chrome. There is no ssl on the server hence the strange mailgun constructor. This is my php which is placed just inside the body of my website. <?php require 'mailgun-php/vendor/autoload.php'; use Mailgun\Mailgun; if(isset($_POST['register'])){ $message = "Contact Form.\n\n". "Name: ".

Converting MailGun cUrl to Coldfusion

偶尔善良 提交于 2020-01-05 08:56:49
问题 I'm attempting to perform actions on a Mailgun mailing list using Coldfusion. Mailgun have supplied the following cUrl: curl -s --user 'api:key-xxxMyAPIkeyxxx' -G \ https://api.mailgun.net/v3/lists/myList@myDomain.mailgun.org/members I can get a good response by simply entering https://api:key-xxxmyAPIkeyxxx@api.mailgun.net/v3/lists/myList@myDomain.mailgun.org/members But I've had no luck converting this into a CFHTTP call: <cfhttp url="https://api:key-xxxmyAPIkey@api.mailgun.net/v3/lists