How to format $email array for mailchimp
So, I'm trying to send an email via the mailchimp api... the documentation regarding the MCAPI class and its methods seems fairly straight-forward, so far. I'm having a hard time figuring out what mailchimp is expecting for the email array.... I know it needs header info, to, 开发者_StackOverflow中文版from, body etc... but what is the format that it wants? Does anyone know off hand - or have a link to the proper docs? Much thanks in advance!
Ah, you can see a previous chunk of code (with its associated corrections) at Send an email via MailChimp.
The specific chunk (I think) you want is this: http://apidocs.mailchimp.com/how-to/transactional-campaigns.php. it goes through the thinking behind sending one-off emails using pseudo-transactional campaigns.
If I got this right, you're supposed to work with email-campaigns. There is a pretty good example and explanation on their site: http://apidocs.mailchimp.com/1.3/campaigncreate.func.php
精彩评论