FAQ Database Discussion Community


Unable to send email using Action Mailer in production

ruby-on-rails,heroku,gmail,actionmailer,mandrill
I'm having some trouble sending email using ActionMailer with Gmail. I've attempted to use Mandrill but it's still not sending. When testing ActionMailer with gmail it works in development only but in production there seems to be an issue. I've tried multiple solutions but nothing seems to be working. I've...

Extra “\n ” in Mandrill raw_message break some links

ruby-on-rails,mandrill
I am sending e-mails from a Rails app on Heroku to Mandrill via SMTP. Everything has been working fine for a while, but recently (detected 2 days ago), we received reports that some links are broken. When I send the message to Mailtrap, also via SMTP, the raw message is...

How to send an email with Mandrill using JavaScript?

javascript,jquery,email,mandrill
I have followed this guide on how to send an email using JavaScript with Mandrill, but am receiving this error in my console: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mandrillapp.com/api/1.0/messages/send.json. This can be fixed by moving the resource to the same domain or...

GuzzleHttp \ Exception \ RequestException cURL error 52: Empty reply from server

php,laravel,laravel-4,mandrill,guzzle
Trying to send email with Laravel using Mandrill. I've set up a test API on Mandrill and have put the API key into the services.php config array, and set the driver to 'mandrill'. Here's how I'm sending the email: $data = array( 'activation_code' => $user->activation_code ); Mail::send('emails.auth.activate', $data, function($message) use...

Class 'Mandrill\Struct' not found while using mandrill api to send mail

php,mandrill
I am using mandrill's api for sending email through my project made in core php. i followed steps as given here Instead of adding as 'use' i have included the respective files in my page & called the api. But it has shown me the above error. The architecture of...

Mandrill Handlebar Template does not render / merge with Parse.com object correctly

templates,parse.com,mandrill
I'm using Mandrill to send template-based email notifications each time a given Object is created in a Parse.com app. The Mandrill template (made with Handlebars) uses 2 typical Parse.com object properties: objectId --> {{object.objectId}} in the template createdAt --> {{object.createdAt}} in the template The problem is that other object properties,...

Mandrill - messages moved to spam because of [Caution: Message contains Redirect URL content]

email,laravel-4,mandrill
My Laravel Web App regularly sends out notifications about system changes via Mandrill. Unfortunately, all mails sent by Mandrill are moved to my spam-box with the message: [Caution: Message contains Redirect URL content] Question 1: What is this message about? I think it's because my server sets the sender-address to...

Do shortened links from Mandrill still contain affiliate information?

cookies,mandrill,affiliate
I have this affiliate link on my site: http://www.amazon.com/dp/0486292576/?tag=bookclubz-20 But, when I send this link out in an email via mandrill, it gets changed to:...

why am I getting a load error for mandrill-api gem on aws?

ruby,amazon-web-services,sinatra,mandrill
I am using Sinatra and ruby on AWS, I have tried with both 2.1 and 1.9.3 using the AWS cli to create my elasticbeanstalk application. I have installed the mandrill-api gem on my local machine and ruin bundle install (although that may not be necessary) and included it in the...

SPF: Too Many DNS Lookups, but I Only Count 10?

email,dns,email-validation,mandrill,spf
I'm fairly confident the SPF record is syntactically correct, and that there's only ten DNS lookups. However, I'm still receiving the "too many DNS lookups" error. Below is the SPF record that I've included. v=spf1 include:spf.microsoftonline.com include:spf.protection.outlook.com include:spf.mandrillapp.com ~all All three include other records, and I've included all of them...

Should my mail sending app mimic it's users domain

email,smtp,mandrill
I'm building a web app. In this web app users sign up for an account. These users use this app because it's a tool for organizing their end customers. On of the features of this app is sending emails. Some of these mail are sent from me (the app author)...

Swift: Mandrill POST Issue

ios,json,swift,mandrill
I am trying to send an email through Mandrill API. I found below swift code here for JSON HTTP POST method: func createRequest(myUrl : String, type : String, params : NSDictionary?, completion : (AnyObject?, NSError?)->Void ){ var url = NSURL(string: myUrl) var request = NSMutableURLRequest(URL: url!, cachePolicy: NSURLRequestCachePolicy.UseProtocolCachePolicy, timeoutInterval: 60.0)...

undefined method `symbolize_keys!' for #

ruby-on-rails,ruby-on-rails-4,mandrill
In mcs_mailer.rb: def invite(email,subject,body,attachment_urls) @attachment_urls= attachment_urls mandrill_mail( template: 'group-invite', subject: subject, to: email, html: body, attachments: [ @attachment_urls.each do |url| { content: File.read(url), name: 'offer.pdf', type: 'application/pdf' } end ]) I am using mandrill_mail in my rails application.I want to send mail with multiple attachments. But getting error in the...

Set Message-Id with Mandrill for bulk emails

mandrill
I am sending emails to lists of contacts based on templates using Mandrill. I would like to track if the contacts have replied to my email and, to do so, I would like to check whether the Message-Id of my sent emails appears in the In-Reply-To header field of new...

Sending sensitive data using Mandrill or MailGun

php,security,email,mandrill,sensitive-data
Good Morning. I'm developing a web app. One of the required features is sending emails, in this case using mandrill or mailgun, which works pretty fine. My question is about the sensitive data as passwords, password reset links and other possible stuff... is this secure to do so through a...

Using dynamic or conditional tags in MailJet

email,mandrill,mailjet
I am working on sending transactional emails to our recipients according to visitors activity in the last week, such that I'll want to deliver at the end the following email including 12 profiles maximum: Hi, User, bla bla look these profiles: Visitor's Name, Age, link to Visitor's image Maria ,...

Why does receiving a Mandrill email take so long (sometimes)?

email,smtp,gmail,email-integration,mandrill
I use Mandrill for sending emails via SMTP, however, sometimes it can take a long time, as in 30-60minutes, before I receive my email. If I look into the Outbound-list, it lists my emails as 'delivered', yet I often have to wait quite a bit before I actually see it...

Send email with template (Mandrill JSON)

json,email,html-email,velocity,mandrill
Hi I've created an html email template using Apache Velocity . I'm trying to send email through Mandrill Json API. There is something known as html template in Mandrill. But is there a way to send my html subject content generated by velocity to be passed as a String value...

AngularJS - Run mandrill service

angularjs,firebase,mandrill
I'm building a small app that needs to send mail through mandrill every hour or so. I want to bind the function that does this to the right location in the app. Basically, I have a Firebase reference with dates/times, and every hour, I need Mandrill to run through that...

Emails very delayed getting from mandrill to gmail

email,gmail,mandrill
For the past 4 months we have been seeing large delays when sending emails through mandrill to gmail addresses. Sometimes it takes 15 minutes but other times it can be up to an hour. When i check the mandrill outbound section shortly after the email is sent it shows the...

Mail with html content shows break lines or ignores newlines

email,templates,go,mandrill
I am sending mail to users via mandrill and I using both smtp and mandrill api to send. Content of the mail is rendered go template (.tpl) When I put template like Hi {{.name}}, <br/> This is support. <br/> it sends via mandrill api ok, but is visible when I...

Meteor.wrapAsync is not returning any value with Meteor.Mandrill

javascript,meteor,mandrill
I'm trying to use the Meteor.Mandrill.send function inside a server-side method. I want the mandrill method to be synchronous, so I tried this: sendActivationCode: function(liftId, email) { check(liftId, String); check(email, String); var body = 'hello'; wrappedMandrillSend = Meteor.wrapAsync(Meteor.Mandrill.send, Meteor.Mandrill); var sentMail = wrappedMandrillSend({ host: "smtp.mandrillapp.com", port: 587, to: email, from:...

Retrieving an inbound message using the Mandrill API

c#,mandrill
I'm trying to retrieve inbound messages from the API on Mandrill, but when I call the sendRaw method, the API fails with an error saying I need to specify a raw message value. I guess the SendRaw is sending the message I specify, rather than returning the message I request?...

AngularJS send email with Mandrill with result from function

angularjs,mandrill
so i am trying to send a completed order form email with mandrill from my AngularJS delivery app... everything was working fine until i added a nested array within the function. so basically here is what i have. thanks for looking here is the EmailController code snippet that is triggering...

Laravel Mail Queue Infinite Loop on Exception

email,laravel,laravel-4,mandrill,beanstalkd
Hello fellow programmers, I wish everyone a good morning. The Situation Laravel is great. Laravel Mail queues and the beanstalkd integration is great. It took me almost no time to get everything working. The sun is shining and its not raining. Its awesome. Except when an exception is thrown while...

bash script modify to take parameter from echo command

linux,bash,email,mandrill,getopt
I have this small bash script(sendmail.sh) to send emails using mandril which works super when used like this ./sendmail.sh "[email protected]" "Email Subject" "Email body". Thanks to black @ LET However I want this script to take its email body from echo command like the linux mail commands works . echo...

How to escape a JSON variable posted with curl in bash script?

bash,curl,mandrill
I'm submitting a message to Mandrill in a bash script via their API and the content of the 'message' variable is causing the API call to come back with an error: An error occured: {"status":"error","code":-1,"name":"ValidationError","message":"You must specify a key value"} The content of the $message_body variable is: Trigger: Network traffic...

Can't send html email with laravel + mandrill

php,laravel,swiftmailer,mandrill
I am using Laravel 4.2 and mandrill plugin. This way I can send emails using the laravel syntax (swiftmailer) and the mails are sent by mandrill. However, I can't seem to send HTML messages. They appear as text emails with htmltags inside. What could be wrong? //Send email $emailName =...

How to send multiple messages to mandrill

python,mandrill
I have around 1000 unique mails with unique content. I want to bulk send them to mandril i.e. I dont want to make individual network calls for every message I am sending. The following document shows the api. But it does not define what I want to. https://mandrillapp.com/api/docs/messages.python.html What I...

Error “emails”:“Please enter an array” when making a request to MailChimp API V2.0

python,mailchimp,mandrill
I have been trying to make a request to the V2 MailChimp API. When I uses the following method : def get_subscriber_info(self, list_id, email): url = "https://us3.api.mailchimp.com/2.0/lists/member-info.json" headers = {'content-type': 'application/json; charset=UTF-8'} payload = {"apikey": "XXXXXXXXXXXXX9999XXX98X886544", "id": "4hstitfbaa", "emails":[{'email':"[email protected]"}] } r = requests.get(url, params=payload, , headers=headers) return r.json() I get...

Is is possible to specify my own Message-Id email header when sending using Mandrill?

node.js,email,gmail,mandrill,messageid
I am sending emails using Mandrill and I want to set the Message-ID myself. I see now an ID like this: Message-Id: <[email protected]1.mandrillapp.com> What I am trying to do is to find out why Gmail does not group messages sent from Mandrill into conversations. Maybe this has to do with...

uninitialized constant Mandrill::API

ruby-on-rails,actionmailer,mandrill
I'm getting uninitialized constant Mandrill::API in my rails application. I've added mandrill-api in Gemfile and did bundle. my irb and rail console showing different results for Mandrill.constants irb [:Error, :ValidationError, :InvalidKeyError, :PaymentRequiredError, :UnknownSubaccountError, :UnknownTemplateError, :ServiceUnavailableError, :UnknownMessageError, :InvalidTagNameError, :InvalidRejectError, :UnknownSenderError, :UnknownUrlError, :UnknownTrackingDomainError, :InvalidTemplateError, :UnknownWebhookError,...

how can I get a custom data in response while sending bulk mails using mandrillApp API?

php,mandrill
if I want custom data (ex. user_id) in a response message call from mandrill API right now I am getting response now like "email": "[email protected]", "status": "sent", "_id": "Some Hash Id", "reject_reason": null can I get user_id in response? or any other way from I can fetch this custom data...

How do I access the content of an API response?

c#,asp.net,json,mandrill
I've tried implementing the simplest case of this with a call to Mandrill's API using the method "ping." The response should be pong. Using a valid key, the response seems to work. However, I am having trouble accessing the content of the response. The code is as follows: using System;...

Using HTML in Mandrill handlebar merge variables

php,mailchimp,mandrill
If I have a handlebar merge variable like {{message}} in my template, how can I have it render HTML output if given the following in PHP: array( 'name' => 'message', 'content' => '<p>First paragraph.</p><p>Second paragraph.</p>' ) Right now it outputs the content without parsing the paragraph tags....

Using a laravel-view in a api-call to mandril

php,api,laravel,mandrill
Ok, so I'm setting up a call to send an email using the mandrill-wrapper from packagist (rather than the build in mandrill-driver) since I want to use merge-vars. So I set up my view and filled it. It renders correctly, all variables are set up and all is good (I...

Sending MailChimp email with Rails

ruby-on-rails,email,devise,mailchimp,mandrill
((I've found similar questions to mine, but they are specific to a 3rd party mandrill gem, or Heroku. I'm not using any of those, just the mandrill-api itself.)) I'm trying to use email confirmation (we use Devise) for account creation. I've set up confirmable, everything with that works well. Initially,...

How to get mandrill response for every message when sending html bulk emails with djrill?

django,email,html-email,mandrill,bulk-email
I'm about to integrate into a project some bulk email features using mandrill and djrill 1.3.0 with django 1.7, since I'm sending html content I'm using the following approach: from django.core.mail import get_connection connection = get_connection() to = ['[email protected]', '[email protected]'] for recipient_email in to: # I perform some controls and...

mandrill template '@' stripped out from email address

mandrill,querystringparameter
I'm using the Mandrill API to send html email. I have a link in my template that contains a query string with an email address, however the '@' sign is stripped out when receiving the email. I'm using global_merge_vars thus: 'global_merge_vars' => array( array( 'name' => 'merge1', 'content' => 'merge1...