1. Go to this page and download the library: Download acymailing/sending-service 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/ */
acymailing / sending-service example snippets
use AcyMailer\SendingService;
$acymailer = new SendingService('your-license-key');
$domain = $acymailer->addDomain('example.com');
$optionsSendEmail = [
'to' => '[email protected]',
'subject' => 'This is the subject',
'body' => 'This is the body with a <h1>title</h1> and a <a href="https://www.acymailing.com">link</a>.',
'alt_body' => 'This is the alternative body. Only text here', // optional
'from_email' => '[email protected]',
'from_name' => 'Email Example',
'reply_to_email' => '[email protected]', // optional, default to from_email
'reply_to_name' => 'no-reply', // optional, default to from_name
'bounce_email' => '[email protected]', // optional, default to from_email
'cc' => ['[email protected]'], // optional, must be an array
'attachments' => ['path/to/attachment.png'], // optional, must be an array
];
$acymailer->send($optionsSendEmail);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.