PHP code example of duncan3dc / mailer
1. Go to this page and download the library: Download duncan3dc/mailer 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/ */
duncan3dc / mailer example snippets
(new \duncan3dc\Mailer\Server)
->createMessage()
->withFromAddress("[email protected]", "Administrator")
->withRecipient("[email protected]", "Your Name")
->withSubject("Test Email")
->withContent("Hello")
->withAttachment("/tmp/UGqucq", "sensible-filename.xls")
->send();