Magento Expert Forum - Improve your Magento experience

Results 1 to 14 of 14

Magento SMTP setup in easiest way

  1. #1

  2. #2
    Junior Member jaredovi's Avatar
    Join Date
    Mar 2013
    Posts
    69
    Thanks
    2
    Thanked 10 Times in 8 Posts

    Thumbs up

    You can install magento SMTP module http://www.magentocommerce.com/magen...mtp-email.html

    But in easiest way, I believe you will like to edit code if you are developer. Let 's open this file

    Code:
    app/code/core/Mage/core/Model/Email/Template.php
    Then edit the method getMail() with this code

    PHP Code:
    public function getMail()   
          {
               if (
    is_null($this->_mail)) {               
                 $&
    #65279;config = array(
                           
    'port' => 25,                                              
                           
    'auth' => 'login',                   
                           
    'username' => [email protected]'
                           &
    #65279;'password' => 'yourpassword'                                               );
                
    $transport = new Zend_Mail_Transport_Smtp('your-smtp-host'$config);
                
    Zend_Mail::setDefaultTransport($transport);
                
    $this->_mail = new Zend_Mail('utf-8');
            }
            return 
    $this->_mail;  
    &
    #65279;} 
    Now enter your smtp credential into the code and check if it work.
    Good luck!

  3. #3
    New member
    Join Date
    Jul 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Pablo View Post
    I want to get Magento SMTP setup in easiest way not from default php mailer of my hosting since it always run into spam box. Any idea how to make it really simple? Thanks
    You can use this extension : http://store.lotusbreath.com/lotusbr...mtp-email.html

  4. #4
    Moderator speed2x's Avatar
    Join Date
    Mar 2013
    Location
    Hollywood, Florida, United States
    Posts
    91
    Thanks
    9
    Thanked 7 Times in 6 Posts

    Default

    It 's easy task, you guys can try this tutorial for solve your issue about SMTP Magento SMTP Email Setup

  5. #5
    Junior Member ccvv's Avatar
    Join Date
    Mar 2013
    Posts
    66
    Thanks
    6
    Thanked 17 Times in 13 Posts

    Default

    It 's very easy to set up, it saved me a lot of time. Thanks jaredovi. I always like to edit core to keep the best performance

  6. #6
    Junior Member bond's Avatar
    Join Date
    Jun 2013
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jaredovi View Post
    You can install magento SMTP module http://www.magentocommerce.com/magen...mtp-email.html

    But in easiest way, I believe you will like to edit code if you are developer. Let 's open this file

    Code:
    app/code/core/Mage/core/Model/Email/Template.php
    Then edit the method getMail() with this code

    PHP Code:
    public function getMail()   
          {
               if (
    is_null($this->_mail)) {               
                 $&
    #65279;config = array(
                           
    'port' => 25,                                              
                           
    'auth' => 'login',                   
                           
    'username' => [email protected]'
                           &
    #65279;'password' => 'yourpassword'                                               );
                
    $transport = new Zend_Mail_Transport_Smtp('your-smtp-host'$config);
                
    Zend_Mail::setDefaultTransport($transport);
                
    $this->_mail = new Zend_Mail('utf-8');
            }
            return 
    $this->_mail;  
    &
    #65279;} 
    Now enter your smtp credential into the code and check if it work.
    Good luck!
    The site return blank page after I edit the code in
    Code:
    app/code/core/Mage/core/Model/Email/Template.php
    . Please help!!!

  7. #7
    New member
    Join Date
    Jun 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It 's easier a lot than what I think, that 's a great share to solve the email problem for magento. Thanks guys

  8. #8
    New member
    Join Date
    Sep 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    As always, I like to edit the core file Template.php to make system work with the best performance. Nice to know!

  9. #9
    Junior Member curtis's Avatar
    Join Date
    Jun 2013
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I install the extension but when I access the menu in configuration page, it show me the page not found??? What happen here and how can I fix it?

  10. #10
    New member conway's Avatar
    Join Date
    Jun 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by curtis View Post
    I install the extension but when I access the menu in configuration page, it show me the page not found??? What happen here and how can I fix it?
    Just need to clear cache and logout then login again you will see the magic .

  11. #11
    Junior Member curtis's Avatar
    Join Date
    Jun 2013
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You are right, it work nice now. Thanks!
    Quote Originally Posted by conway View Post
    Just need to clear cache and logout then login again you will see the magic .

  12. #12
    Junior Member byron's Avatar
    Join Date
    Jun 2013
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Cool, it work nice for me

  13. #13
    Junior Member
    Join Date
    Dec 2014
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can't believe SMTP in magento can be easy like that . That 's cool help. Thanks jaredovi

  14. #14

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
  •