Results 1 to 4 of 4

Thread: Zend_Mail help

  1. #1
    Join Date
    Feb 2011
    Posts
    10

    Default 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!

  2. #2

    Default

    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.

  3. #3
    Join Date
    Feb 2011
    Posts
    10

    Default

    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.

  4. #4
    Join Date
    Feb 2011
    Posts
    10

    Default

    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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •