Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. require_once 'Zend/Mail.php';
  3. $config = array('auth' => 'login',
  4.                 'username' => 'contact-9@gmail.com',
  5.                 'password' => 'supersecretpass');
  6.  
  7. $transport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
  8.  
  9. $mail = new Zend_Mail();
  10. $mail->setBodyText('This is the text of the mail.');
  11. $mail->setFrom('contact-9@gmail.com', 'Some Sender');
  12. $mail->addTo('contact-9@gmail.com', 'Some Recipient');
  13. $mail->setSubject('TestSubject');
  14. $mail->send($transport);
  15.  
  16. phpinfo();
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement