Framework: [Request] subaccount string to Mandrill driver

Created on 27 Aug 2014  路  5Comments  路  Source: laravel/framework

It would be awesome to have a way to pass subaccount string to a Mandrill api. Ideally it would be placed next to Mandrill API key in services.php

https://mandrillapp.com/api/docs/messages.JSON.html

Most helpful comment

As an interim workaround, try adding getHeaders() and addTextHeader() as the last elements to your $message object:

$message
    ->subject('foo')
    ->getHeaders()
    ->addTextHeader('X-MC-Subaccount', 'bar');

All 5 comments

I agree.

A :+1: from me on this.

It doesn't look like the send-raw Mandrill endpoint takes a subaccount argument, though.

Would be a great addition.

As an interim workaround, try adding getHeaders() and addTextHeader() as the last elements to your $message object:

$message
    ->subject('foo')
    ->getHeaders()
    ->addTextHeader('X-MC-Subaccount', 'bar');

We're open to pull requests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lzp819739483 picture lzp819739483  路  3Comments

jackmu95 picture jackmu95  路  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments

PhiloNL picture PhiloNL  路  3Comments

iivanov2 picture iivanov2  路  3Comments