fideloper / CI-Mandrill

A Codeigniter library for the Mandrill email platform
MIT License
50 stars 29 forks source link

CI-Mandrill reply-to #3

Open chuchden opened 10 years ago

chuchden commented 10 years ago

Hello, How to add reply-to ?

fideloper commented 10 years ago

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' => 'me@ohmy.com',
        'from_name' => 'Me-Oh-My',
        'to' => array(array('email' => 'joe@example.com' )) //Check documentation for more details on this one
        'headers' => array(
                 "Reply-To"=>"message.reply@example.com"
            )
        );

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!