Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Zend Email Sender
- this would work with other SMTP providers, config may change
- */
- $mailHost = 'smtp.gmail.com';
- $mailConfig = array(
- 'ssl' => 'ssl',
- 'port' => 465,
- 'auth' => 'login', // this is fix
- 'password' => '********'
- );
- $smtpTransport = new Zend_Mail_Transport_Smtp($mailHost, $mailConfig);
- Zend_Mail::setDefaultTransport($smtpTransport);
- $mail = new Zend_Mail('UTF-8');
- ->setSubject ('my subject')
- ->setBodyHtml('my message here text/html')
- ->send();
Advertisement
Add Comment
Please, Sign In to add comment