How to format $email array for mailchimp

丶灬走出姿态 提交于 2019-12-11 06:52:29

问题


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, 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!


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/5921820/how-to-format-email-array-for-mailchimp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!