1. Go to this page and download the library: Download manlikeangus/zeptomail library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
manlikeangus / zeptomail example snippets
// doing your own loading:
oloading:
//create a new message object
$msg = new \stdClass();
//dy = "My text-only message"; //TEXT MSG, NULL IF sending HTML
$msg->htmlbody = "<p>My HTML-formatted message</p>"; //HTML MSG, NULL if sending TEXT
$msg->to = array('[email protected]','Joe Customer'); //TO
$msg->from = array('[email protected]','XYZ Company'); //FROM
//instantiate library and pass info
$tmail = new \ZeptoMail\ZeptoMailClient($msg);
//send the message
$response = $tmail->send();
if ($response) {
// success
}
else {
// failure
}