Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $smtpServer = 'https://sendgrid.com/';
- $username ='Autoguide';
- $password ='Auto@2016AUTO';
- $config = array('ssl' => 'tls',
- 'port' => '587',
- 'auth' => 'login',
- 'username' => $username,
- 'password' => $password
- );
- $transport = new Zend_Mail_Transport_Smtp($smtpServer, $config);
- $mail = new Zend_Mail();
- echo "heloo";
- die();
- $mail->setFrom('t6.richpurple@gmail.com', 'Some Sender');
- $mail->addTo('mukeshkr2013.com','Some Recipient');
- $mail->setSubject('Test Subject');
- $mail->setBodyText('This is the text of the mail using Zend.');
- $mail->send($transport);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement