Advertisement
Guest User

Untitled

a guest
May 13th, 2011
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <?php
  2.  
  3. define('MAILER_ROOT', realpath(dirname(__FILE__).'/..').'/');
  4. require MAILER_ROOT.'../utf8/php-utf8.php';
  5. require MAILER_ROOT.'mailer.php';
  6.  
  7. header('Content-type: text/plain');
  8.        
  9. try
  10. {
  11.     $mailer = MailTransport::load('smtp', 'test@smtp.org', array(
  12.         'host'      => 'test.smtp.org',
  13.         'ssl'       => false,
  14.         'username'  => 'user02',
  15.         'password'  => 'pass02',
  16.     ));
  17.  
  18.     $email = $mailer->new_email('testing fluxbb-mailer', 'testing...');
  19.     $email->send('bit-bucket@test.smtp.org');
  20. }
  21. catch (Exception $e)
  22. {
  23.     exit($e->getMessage()."\n");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement