Guest User

Untitled

a guest
May 10th, 2018
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. $config = array(
  2.     'auth' => 'login',
  3.     'username' => 'demetriscompany',
  4.     'password' => 'tjqobyrwdgqtbsoq');
  5. $tr = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
  6. $mail = new Zend_Mail();
  7. $mail->setBodyText('This is the text of the mail.');
  8. $mail->setFrom('[email protected]', 'Server');
  9. $mail->setSubject('бла-бла-бла');
  10. $mail->send($tr);
Add Comment
Please, Sign In to add comment