Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'Zend/Mail.php';
- $config = array('auth' => 'login',
- 'username' => 'contact-9@gmail.com',
- 'password' => 'supersecretpass');
- $transport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
- $mail = new Zend_Mail();
- $mail->setBodyText('This is the text of the mail.');
- $mail->setFrom('contact-9@gmail.com', 'Some Sender');
- $mail->addTo('contact-9@gmail.com', 'Some Recipient');
- $mail->setSubject('TestSubject');
- $mail->send($transport);
- phpinfo();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement