Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. $smtpServer = 'https://sendgrid.com/';
  4. $username ='Autoguide';
  5. $password ='Auto@2016AUTO';
  6.  
  7. $config = array('ssl' => 'tls',
  8. 'port' => '587',
  9. 'auth' => 'login',
  10. 'username' => $username,
  11. 'password' => $password
  12. );
  13.  
  14. $transport = new Zend_Mail_Transport_Smtp($smtpServer, $config);
  15.  
  16. $mail = new Zend_Mail();
  17. echo "heloo";
  18. die();
  19. $mail->setFrom('t6.richpurple@gmail.com', 'Some Sender');
  20. $mail->addTo('mukeshkr2013.com','Some Recipient');
  21. $mail->setSubject('Test Subject');
  22. $mail->setBodyText('This is the text of the mail using Zend.');
  23.  
  24. $mail->send($transport);
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement