CI-Mandrill icon indicating copy to clipboard operation
CI-Mandrill copied to clipboard

CI-Mandrill reply-to

Open chuchden opened this issue 12 years ago • 1 comments

Hello, How to add reply-to ?

chuchden avatar Dec 16 '13 12:12 chuchden

It looks like their docs want you to add that via a "header". I think this means you can do this:

 $email = array(
        'html' => '<p>This is my message<p>', //Consider using a view file
        'text' => 'This is my plaintext message',
        'subject' => 'This is my subject',
        'from_email' => '[email protected]',
        'from_name' => 'Me-Oh-My',
        'to' => array(array('email' => '[email protected]' )) //Check documentation for more details on this one
        'headers' => array(
                 "Reply-To"=>"[email protected]"
            )
        );

If that doesn't work, try their official php sdk, as this repository is literally years old without being touched, and was ripped out of Mandrill's official Wordpress plugin (before they had an official PHP SDK available)!

Hope that helps!

fideloper avatar Dec 16 '13 13:12 fideloper