hello"; $to = " johndoe@gmail.com "; ...">

Mailchimp for layouts (php)

I have a home PHP script that can send an email.
Very simple:

$html = "<b>hello</b>"; $to = " johndoe@gmail.com "; $from = " me@server.com "; sendMAIL($from, $to, $html); 

How can I replace these lines with the use of the Mailchimp mechanism?
I have a Mailchimp account and a Mailchimp API key.

Thank you for your help!

+4
source share
2 answers

MailChimp itself does not support sending single / transactional emails. If you want to be able to send a single / transactional email, you will need to integrate MailChimp into Amazon Web Services Simple Email Service (SES) using the MailShimp STS API

MailChimp is designed to send emails / newsletters (campaigns) to multiple subscribers.

If you just need to send one email, stick to your php solution ... (or integrate into AWS SES via MC STS)

+3
source

See the sample code for more details - http://apidocs.mailchimp.com/sts/1.0/sendemail.func.php

+1
source

All Articles