mandrill

Mandrill and view in browser functionality

笑着哭i 提交于 2020-01-01 01:11:35
问题 Anyone know if Mandrill support a "View in browser" functionality like the MailChimp |ARCHIVE| variable. If not, can I use the search functionality to fetch a send mail (for example if I know some specific metadata for the mail in question)? Or would I have to render the template and store it myself for later retrieval? 回答1: The best bet is to store a copy on your server that you can link to from within an email when it makes sense, such as for bulk emails. The ARCHIVE merge tag isn't

How to send an email with Mandrill using JavaScript?

馋奶兔 提交于 2019-12-30 04:52:08
问题 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 enabling CORS. Here is my code: $('#submitEmail').click(function() { $.ajax({ type: "POST", url: "https://mandrillapp.com/api/1.0/messages/send.json", data: {

How to send Mandrill message with special characters?

守給你的承諾、 提交于 2019-12-25 04:53:39
问题 I am using Mandrill to send mails to our members. Sending a normal text message works perfect. But a message with special characters (ä,ë,ï,ö,ü,€,...) will not be attached in Mandrill's 'html' => variable. Can anyone tell me how to send a message with special characters through Mandrill? I tried to edit the $message_content variable with str_replace and preg_replace , none worked so far. When I use ï and € when typing the message content, it works perfect. But I can't seem to change this when

Append multiple recipient email and name into EmailMultiAlternatives

孤者浪人 提交于 2019-12-25 04:32:10
问题 Hi I have a form mixin which the user inputs a message and sends it to multiple recipients. I am using Mandrill as my email client. I am currently able to send the email to a single recipient, but it fails when inputting more then one user. This is the form mixin class FormListView(FormMixin, ListView): def get(self, request, *args, **kwargs): form_class = self.get_form_class() self.form = self.get_form(form_class) self.object_list = self.get_queryset() context = self.get_context_data(object

Send emails with a new domain?

拈花ヽ惹草 提交于 2019-12-25 03:03:58
问题 I am new to the emailing systems in web applications. I've built a Django app and I'd like to add a send email functionality. I bought a domain like 'mydomain.com' and I want to send emails from 'services@mydomain.com'. Is this possible using only mandrill? EDIT I have just the domain, there's no yet any email address created with my domain, this is the first time I am in charge of this and I'd like to know how to create emails addresses and use it to send messages via my django app and

How can I get Mandrill to parse the Handlebars tags in my template?

£可爱£侵袭症+ 提交于 2019-12-24 13:46:13
问题 I'm using Mandrill's send-template API method to send an email. It shouldn't matter, but just in case, I'm using PHP. The email is delivered using the correct template, but none of the Handlebars variables are replaced with their values. Instead, they're merely removed. Here's a full request as seen in the API Logs after reducing my code: { "template_name": "my-template-slug", "template_content": [ { "name": "price", "content": "$25" } ], "message": { "subject": "My Subject", "from_email":

mandrill integration with osclass 3.3.x

人走茶凉 提交于 2019-12-24 12:02:22
问题 I try to setup mail server for my Osclass website.but it doesn't work . I try every port 25, 587 or 2525 for non encryption but it not work. Is there is any mandrill plugin available for Osclass? anyone who has already integrated mandrill and Osclass can please tell what is missing? 回答1: it looks like you're not specifying an email address in the "Mail from" field, which might be causing some issues because you do need to specify a sender email address and not just a name. However, if you're

Mandrill ignores line breaks (\n)

梦想的初衷 提交于 2019-12-23 11:20:14
问题 Using the send-template method and the Lutung Mandrill Java API implementation, when a template variable contains line breaks of the form \n , they are totally ignored or stripped on generated emails. The String s containing \n characters are kept untouched untill the GET send-template method is executed. So I guess there is some String analysis and conversion on Mandrill servers which removes special characters. How can I make work again line breaks on Mandrill emails? 回答1: In my case I am

Missing argument 1 for Illuminate\Support\Manager::createDriver() while sending mail in laravel

空扰寡人 提交于 2019-12-23 09:52:34
问题 my .env file is: MAIL_DRIVER=mail MAIL_HOST=smtp.mandrillapp.com MAIL_PORT=587 MAIL_USERNAME=sabin.maharjan456@gmail.com MAIL_PASSWORD=**************************** Mailer.php <?php namespace App\Http\Controllers; class Mailer{ public function sendTo($email, $subject, $view, $data = array()) { \Mail::queue($view, $data, function($message) use($email, $subject) { $message->to($email)->subject($subject); }); return "Mail has been sent"; } public function welcome($formData) { $subject = "User

How do I test mandrill api with rspec

我只是一个虾纸丫 提交于 2019-12-23 08:30:06
问题 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