Suggestions for adding image
-
I’ve been trying to use the mandrill_payload filter to add my logo as cid:image without success.
Mandrill provides this: https://help.mandrill.com/entries/25252978-Tips-for-using-images-in-Mandrill-emails
and
https://mandrillapp.com/api/docs/messages.JSON.html#method=send-templateThe send template API mentions the images array but when I check the $message it doesn’t exist.
Here is the pseudo code I’d like to make work in my theme/functions.php.
function my_callback($message) { // Add cid image to $message // type = "image/png" // name = "logo" // content = "{base64 string}" // $message = {no clue how to append type, name and content to $message} return $message; } add_filter( 'mandrill_payload', 'my_callback' );
Appreciate some help from you experts… thx
/Mattias
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Suggestions for adding image’ is closed to new replies.