Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('MAILER_ROOT', realpath(dirname(__FILE__).'/..').'/');
- require MAILER_ROOT.'../utf8/php-utf8.php';
- require MAILER_ROOT.'mailer.php';
- header('Content-type: text/plain');
- try
- {
- $mailer = MailTransport::load('smtp', 'test@smtp.org', array(
- 'host' => 'test.smtp.org',
- 'ssl' => false,
- 'username' => 'user02',
- 'password' => 'pass02',
- ));
- $email = $mailer->new_email('testing fluxbb-mailer', 'testing...');
- $email->send('bit-bucket@test.smtp.org');
- }
- catch (Exception $e)
- {
- exit($e->getMessage()."\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement