mandrill

How do I test mandrill api with rspec

拜拜、爱过 提交于 2019-12-23 08:30:04
问题 So my client has reported that many of the emails are going to the wrong person, and I would like to write some feature tests to find and make sure that they are receiving the email and what it says in my specs. I have mandrill_mailer which uses mandril api, and before it sends out I would like to see what the message is. For example. Create a new user account -> creates the user, and then sends out a welcome email. in devise it calls RegistrationMailer.new_registration(resource).deliver

Rails 4, Devise & Mandrill emails

匆匆过客 提交于 2019-12-23 07:47:06
问题 I'm trying to make an app in Rails 4. For the past 3 years, I've been struggling to figure out devise/omniauth (I am still trying to get it to work). Stepping aside from the main problems while I try and find the will to live through this, I've tried to setup emails with Mandrill. I found this tutorial, which I am trying to follow along: https://nvisium.com/blog/2014/10/08/mandrill-devise-and-mailchimp-templates/ I have a mailer called mandrill_devise_mailer.rb class MandrillDeviseMailer <

Delayed job and Mandrill: uninitialized constant Mandrill::API

☆樱花仙子☆ 提交于 2019-12-22 10:34:22
问题 I have mailer service where users can upload an .xls file with emails and some other user related data to send an email campaign. I was having some timeout issues since it takes some seconds to process (as I do some validation and configuration for each email to be sent, eg: save records to database, check if an email was sent in the last 30 days, create personalised html code for each email (to create links that contain the email address as a parameter, etc). After some research, moving this

Mandrill Status: queued

六月ゝ 毕业季﹏ 提交于 2019-12-22 08:26:53
问题 I'm testing the Mandrill API and sent an email to my GMail account. In the API logs, it says: "status": "queued" According to https://mandrill.zendesk.com/hc/en-us/articles/205582717-Why-does-a-delivered-message-say-queued- : most times Mandrill can send email much faster than recipient servers are able to accept or process it GMail is not able to handle my one email that I sent? 回答1: A queued response in the Mandrill API is not the same as a queued response from a recipient server. When you

Mandrill inbound emails through Laravel / PHP

点点圈 提交于 2019-12-22 00:09:20
问题 I was wondering if someone could help me with a problem I have been having some trouble researching related to Laravel and inbound email processing through Mandrill. Basically I wish to be able to receive emails through Mandrill and store them within my Laravel database. Now i'm not sure if i'm reading through the documentation with the wrong kind of eyes, but Mandrill says it deals with inbound email as well as outbound, however i'm starting to think that Mandrill deals with inbound email

Does Google Schema support quoted-printable encoding?

寵の児 提交于 2019-12-21 20:14:26
问题 I'm trying to self-test my email schemas. My mail is sent with: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The original script tag <script type="application/ld+json"> is rendered as <script type=3D"application/ld+json"> , when I View Original the marked up email. This fails the markup tester, but when I manually remove the 3D , it passes the test. Q1 - Does Google support quoted-printable encoding? Q2 - Why does the test fail? Note: On a Rails

Mandril: How to attach ics invitation file to template?

烂漫一生 提交于 2019-12-21 13:04:22
问题 Hello, I wonder if mandrill support ability to send mail with attached ics file. Lets say I have some template. function sendMailMandrillInvite($name, $contact_email, $textarea, $url, $template_name = 'invite-businesses'){ $merge = 'true'; $message = array('dest_mail' => $contact_email, 'merge' => $merge); $message['to'] = array(array('email' => $contact_email)); $mergeVars[] = array( 'rcpt' => $contact_email, 'vars' => array( array('name' => 'contact_name', 'content' => $name), array('name'

Mandril: How to attach ics invitation file to template?

℡╲_俬逩灬. 提交于 2019-12-21 13:04:19
问题 Hello, I wonder if mandrill support ability to send mail with attached ics file. Lets say I have some template. function sendMailMandrillInvite($name, $contact_email, $textarea, $url, $template_name = 'invite-businesses'){ $merge = 'true'; $message = array('dest_mail' => $contact_email, 'merge' => $merge); $message['to'] = array(array('email' => $contact_email)); $mergeVars[] = array( 'rcpt' => $contact_email, 'vars' => array( array('name' => 'contact_name', 'content' => $name), array('name'

Mandrill sending to multiple people as separate message via the REST API

拈花ヽ惹草 提交于 2019-12-20 20:37:52
问题 I'm trying to send out mails using mandrill. The problem is that when I add multiple recipients to the 'to' parameter, it sends out the same mail multiple times with ALL the recepients in the 'to' list. I was expecting the same mail to be sent out individually to every person in the to list. Am I missing something ? { "key": "app-key", "template_name": "platform-invite", "template_content": [ { "name": "connection", "content": "<a class=\"mcnButton \" title=\"Lets Go\" href=\"http://someurl\"

Deserializing MandrillApp Webhook response

我只是一个虾纸丫 提交于 2019-12-20 02:14:03
问题 MandrillApp API supposedly sends a JSON-encoded array of the messages with the mime type application/x-www-form-urlencoded . The problem I have encountered is that the data received looks like: mandrill_events=%5B%7B%22event%22%3A%22send%22 %2C%22msg%22%3A%7B%22ts%22%3A136510999...etc Url decoded it is: mandrill_events=[{"event":"send","msg":{ "ts":1365109999,"subject"...etc I try to deserialize this string into a class that represents the JSON data but the JSON.NET deserializer spits out an