<?php
include_once
"mailstronger.php";
//
connect
to
the server
$mailstronger
=
new
MailStronger
(
'https://api.mailstronger.net/'
,
USER_ID
,
API_KEY
);
//
send
email
$data
=
array
(
"to"
=>
array (
"John@site.com"
=>
"John"
,
"email@site.com"
=>
"site"
),
"from"
=>
"user@mail.com"
,
"from_name"
=>
"user"
,
"subject"
=>
"My first message"
,
"reply_to"
=>
array (
"newmail@mail.net"
=>
"Reply-to"
,
"newmail@mail"
=>
"newmail"
),
"cc"
=>
array (
"cc@newmail.net"
=>
"CC"
),
"bcc"
=>
array (
"bcc@newmail.net"
=>
"BCC"
),
"html_content"
=>
"< html>< body>my first < b>test html< /b>"
,
"text_content"
=>
""
,
"pool_name"
=>
"pool-global-mailstronger"
,
"list_id"
=>
10947
,
"attached_files"
=>
array (
"http://www.url.com/file.pdf"
,
"http://www.url.com/Myfile.pdf"
)
);
print_r
($mailstronger
->
EmailSend("$data")));
?>