-
Zend_Mail help
Hi,
In the old 2.7 version I was able to modify PHPMailer to send mail from SMTP with authentication, however I can't seem to understand how to do it with the new Zend_Mail.
If possible, may I get some pointers with configuring the new Zend_Mail for SMTP? (Ideally Gmail)
Thank You!
-
Hi,
For sending mail from SMTP (vShare2.8.1),
open vShare/include/class.mail.php file and find
Code:
Zend_Loader::loadClass('Zend_Mail');
replace with
Code:
Zend_Loader::loadClass('Zend_Mail');
Zend_Loader::loadClass('Zend_Mail_Transport_Smtp');
$tr = new Zend_Mail_Transport_Smtp('mail.example.com');
Zend_Mail::setDefaultTransport($tr);
If you can't get it fixed, open a support ticket at
BuyScripts Helpdesk
with your vShare admin and FTP login details.
Thanks,
Buyscripts Team.
-
Hi vshare2,
Thank you so much for your reply! I really appreciate it. :-)
I do have one more question: Do you know how I could pass the login credentials for Authenticated SMTP?
Thank You.
-
Actually I just figured it out.
I needed to add one extra line to your code for authenticated SMTP (highlighted in red):
Code:
Zend_Loader::loadClass('Zend_Mail');
Zend_Loader::loadClass('Zend_Mail_Transport_Smtp');
$config = array('ssl' => 'tls', 'port' => 587, 'auth' => 'login', 'username' => '[email protected]', 'password' => '123abc');
$tr = new Zend_Mail_Transport_Smtp('smtp.domain.com', $config);
Thank you so much for your help! This is resolved now. http://forums.buyscripts.in/images/icons/icon7.png