Example how to send email with attachment in Mandrill using Backand server side action – I have tried a number of different things to try to successfully attach the that is being sent using the mandrill api via a Mandrill-dotnet wrapper. Introduction: Hi All, Been using Keystone for about a year now and until now have been able to convince my clients to not use email.
|Published (Last):||4 February 2016|
|PDF File Size:||17.64 Mb|
|ePub File Size:||10.81 Mb|
|Price:||Free* [*Free Regsitration Required]|
I also tried by adding the path directly onto the file as in:. I have googled and read every article I can find but cannot find any specific reference as to how I should specify the path for mandrill to correctly attach my attachment. It looks like you’re passing a parameter called pathbut the Mandrill API doesn’t take the path of a file for attachments. If you’re using the send or send-template call, attachments should be an associative array hash with three keys: The content parameter should be the contents of the file as a Base64 encoded string, so instead of path, you’ll want to get the file contents, Base64 encode them, and then pass them in a parameter called content instead of path.
You can see the full details of the parameters, including for attachments, in the Mandrill API docs here: So thanks to Kaitlin for her input. mqndrill
Mandrill by Mailchimp
I will edit my post and mention that I am using cakephp.
If you have experience using mandrill with cakephp I would appreciate the input. Mandril mean how can you ask a question about a class Mandrill that no-one has ever seen so far? You want to give it a shot?
php – Mandrill email attachments file path – Stack Overflow
I was actually hoping to get an answer from the guys at mandrill. I have edited the question again with a attacb to the php wrapper: Kaitlin 5, 26 Sorry for my attaach. I am not familiar with using Mandrill and I have not base64 encoded anything or for that matter attached files to emails before.
So far I am very impressed with Mandrill and appreciate your quick feedback! Yeah, thanks for jumping into stackoverflow with us: This is super helpful.
Hi Manuwhat about decoding it? How do I save the decoded base64?
I don’t know what you are trying to achieve but this thread is about how to attach and send files using the mandrill api. When you receive the file you do not need to do anything to the file. It is available to download like any email attachment.
You mean Mandrill will provide a link for us to download it? You get the attachment in your email like any attachment.
Mandrill is provides a transport facility not a storage facility. Sign up or log in Sign up using Google.
emails – Attaching files from a Private folder with Mandrill – Drupal Answers
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.