PHP code example of taq / delayedmail
1. Go to this page and download the library: Download taq/delayedmail 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/ */
taq / delayedmail example snippets
ver = new DelayedMail\Server("myconfigs.ini");
$msg = new DelayedMail\Message();
$msg->from("taq <[email protected]>")->
to("Eustaquio Rangel <[email protected]>")->
cc("Eustaquio Rangel <[email protected]>")->
subject("DelayedMail test!")->
text("This is just\na test!")->
attach("taq.jpg");
$server->push($msg);
$dir = dirname(__FILE__);
echo "- loading classes from $dir\n";
);
$ php runner.php
- initializing ...
- checking for files in /tmp/delayedmailtest/delivery ...
- no files found.
$ php test.php