Guest User

Untitled

a guest
Nov 18th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. require_once 'Application/Application.php' ;
  3. Application::initialize ( ) ;
  4.  
  5. use Application\Library\Mailer\SMTP ;
  6. use Application\Library\Mailer\ConnectionContext ;
  7. use Application\Library\Mailer\Authentication\Login ;
  8.  
  9. $context = new ConnectionContext ( 'tls://smtp.gmail.com' , 587 ) ;
  10. $smtp = new SMTP ( $context->getConnection ( ) ) ;
  11. $smtp->setAuthentication ( new Login ( 'andreykvital@gmail.com' , ':)' ) ) ;
Add Comment
Please, Sign In to add comment