PHP code example of iceithq / mail-php
1. Go to this page and download the library: Download iceithq/mail-php 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/ */
iceithq / mail-php example snippets
use com\iceithq\Mail;
$mail = new Mail("https://api.example.com");
$response = $mail->to("[email protected]")
->attach("/path/to/file1.pdf")
->attach(["/path/to/file2.jpg", "/path/to/file3.png"]) // multiple attachments
->send("Test Subject", "This is the body of the message.");
echo $response;
bash
composer dump-autoload