Information about ninjaMail, API usage, examples, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
647 B

include "ninjamail.class.php";
// Mail
$mail = new ninjaMailSend('', 'API_KEY');
$mail->to('[email protected]');
$mail->message('HTML_CONTENT', 'TEXT_CONTENT');
// Newsletter
$newsletter = new ninjaMailNewsletter('', 'API_KEY');
$newsletter->subject('New subject');
$newsletter->message('HTML_CONTENT', 'TEXT_CONTENT OR NULL');
if ($newsletter->update() && $newsletter->send())
echo "updated & sent\n";
// Stats
$stat = new ninjaMailStatistics('', 'API_KEY');