Skip to navigation Skip to content
ASchroder.com

Notes on Web Development

  • Home
  • About
  • Presentations
  • Home
  • About
  • Presentations
Posted on August 29, 2009 February 28, 2010

SMTP Pro Magento extension, free and open SMTP support for Magento

Written by
Ashley
Posted in
Magento, Projects, SMTP Pro Magento Extension, Web Development
Tagged
athentication, cram-md5, login, Magento, plain, smtp, ssl, tls
Comments
220 Comments

Well this morning I said I was going to start working on a simple SMTP extension for Magento. The weather was completely stink here in Auckland so I ended up making the ASchroder.com SMTP Pro Magento extension this afternoon you can get it from Magento Connect. It’s a development release and I’m seeking feedback on it from people willing to give it a try.

It has several features over the older SMTP extensions available for Magento.

  1. supports self testing right from the Magento admin UI
  2. logs friendly messages if you enable logging in var/log
  3. has helpful comments to guide you when configuring
  4. supports Magento built in newsletters

Several people have asked me to open my Google Apps / Gmail Magento extension up to support other SMTP servers. I worried that once I added extra configuration options to my extension, the simplicity and ease of use would be lost. I decided to separate the two extensions so that those who just want to send using gmail or Google Apps, do not need to know anything about TLS, Authentication or what port to send on (it’s 587 if you care…). So that’s why I have made this Magento SMTP extension, I’ll be supporting it as best I can, just as I do with my Google Apps and Gmail extension.

Here is a screenshot of the configuration dialog:

This shows the Configuration options for the SMTP Pro extension.
This shows the Configuration options for the SMTP Pro extension.

And also a screenshot of a successful self test result:

This shows the results of a self test.
This shows the results of a self test.

If you have any comments, suggestions or feedback, please let me know.

You might also be interested in:

  1. Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)
  2. Magento SMTP, Gmail and Google Apps Email combined extension released (at last)
  3. Google Apps Email/Gmail Magento Extension v0.5 released
  4. Magento SMTP Pro 2 – Free and Open Source SMTP Configuration
  5. Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension

Post navigation
Google Apps Email/Gmail Magento Extension v0.5 released
Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension

220 thoughts on “SMTP Pro Magento extension, free and open SMTP support for Magento”

Comment navigation
← Older Comments
Newer Comments →
  1. niraj
    November 12, 2010

    I have a similar problem like a user listed before. I am testing on XAMPP localhost for gmail. The error message says cannot connect through TLS.
    How can one ensure in xampp that the required ports are open?
    Thanks for this otherwise what is a helpful extension!

  2. Philip
    November 23, 2010

    Does anyone know if this extensions works on Magento Enterprise 1.9.x?

  3. Ashley
    November 24, 2010

    @Philip – it should it does very basic overrides, main risk is that something else overrides too. Try it in your staging environment first 🙂

  4. Philip
    December 2, 2010

    Hi Ashley, thanks for a great plugin, this should seriously be in core, I don’t even understand how it’s not.

    This did work with EE 1.9, though I edited the send function in Template.php a little to match the EE version. I think the EE 1.9.1 changes are getting rolled out to CE 1.4.2. but can’t say for sure.

    Thanks again!

  5. Marco
    December 13, 2010

    Hi Ashley,

    I have installed your plugin but I get a 404 page not available message on both the log and test page. Any idea what I’m doing wrong?

    I’m on Magento Community Edition 1.4.2.0

  6. Ashley
    December 13, 2010

    @Marco Please check the store code url setting – sometimes that seems to break the pages (I have an outstanding bug to fix in that area I think). Also, check you have cleared your cache and try logging out and back in again.

  7. Marco
    December 13, 2010

    @Ashley Reverted the whole shop back to 1.4.1.1 again since I couldn’t get any mail working with that version. Now at least the standard PHP/Zend mail works again. Would rather have your extensions working. Have cleared the cache several times, even reinstalled you extension with the cache turned off. Could you tell me what the url should look like? For instance; the URL I see when I try to call the test screen looks like this: https://www.thanx.nl/index.php/“my admin folder”/smtppro/index/index/key/”some key”/. FYI I did not install magento in a separate magento folder but straight into the webroot. Hope this info helps tracking down where it goes wrong?

  8. Diego
    December 15, 2010

    Hi there, I upgraded to 1.4.2 rc2, it wont upgrade to 1.4.2, but it seems that the difference is the label only. Right?

    Anyway, it all went smooth except that now when I want to notify a client with a comment at their orders, the notification is logged and I can see it at the Order details in both admin and user’s front end. But when I include “Notify customer by email”, an error pops up, “Cannot Add Order History”.

    I’m using ASchroder.com SMTP Pro Magento extension, because my webserver doesn’t allow the mail function without authentication.

  9. Ashley
    December 15, 2010

    @Marco – that url looks ok to me. Do you have the setting append store code to URL’s set? In the past that has causes issues.

    @Diego thanks for the comment – I haven’t fully tested on 1.4.2 yet. Can you see any error message in var?

  10. Brian
    April 5, 2011

    This extension installed through Magento Connect without a hitch on (1.5.0.1). I installed it the development system and then onto the live system after a little testing. The experience was the same with both. Flawless, I guess is the only way to describe that. One is an HP PC and the other is and Amazon AMI instance on the EC2. Same, same, but different.

    About a 10 second install. The config was easy in the backend. The test feature is great and gives good error reporting.

    Does exactly what one might want for using the basic Magento transaction emails up and running.

    Thanks a ton, Mr. Ashley. You are the man.

  11. Mike
    April 19, 2011

    Hi Ashley,

    I have this message when I run a self test:
    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using SMTP configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address degrifweb@degrifweb.com:
    Unable to send test email. Exception message was: Unable to connect via TLS…
    Please check and double check your username and password.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

    Any idea what could be wrong ?

  12. Darren
    May 2, 2011

    Great work Ashley.

    Tested on a Wamp/Win7 setup, then a Ubuntu box, and on production server with great results.

    Just wanted to say Thanks.

  13. Sander
    May 25, 2011

    Hi there,

    Just tried to install the SMTP extenstion via Magento Connect. No problems so far, but when I returned to my Magento admin panel it doenst work any more. In the top recht corner i see the following error:

    Fatal error: Class ‘Aschroder_SMTPPro_Helper_Data’ not found in /home/terraxl/domains/terraxl.nl/public_html/app/Mage.php on line 520

    Could you help me out?

    Also I would like to know how to manually deinstall the extension.

    kind regards,

    Sander
    The Netherlands

  14. mau
    June 1, 2011

    Hi! First of all thank you very much for the extension, I´ve trying for a while now but I just can´t get it to work, I´m trying to set it up with google apps, the email and password to enter should be from the admin of the google apps account, right? I get this error on test:

    Testing outbound connectivity to Server:
    Using Google Apps/Gmail configuration options
    Failed to connect to SMTP server. Reason: Connection timed out(110)
    This extension requires an outbound SMTP connection on port: 587
    Sending test email to your contact form address admin@domain.com:
    Unable to send test email. Exception message was: Connection timed out…
    Please check and double check your username and password.
    Contact Form test email did not use SMTPPro to send.

    Thanks in advance!

  15. mau
    June 2, 2011

    Turns out the problem was my host, Bluehost, I´ve found a solution here http://www.bluehostforum.com/showthread.php?19187-Why-Bluehost-does-not-support-external-SMTP/page2 It´s working now…

  16. Ashley
    June 2, 2011

    Nice follow up Mau, thanks! Check out MageSpeedTest.com for some much better Magento hosts than bluehost!

  17. mau
    June 2, 2011

    Thanks, I´m seriously thinking about migrating, Bluehost can be very annoying… Y gracias de nuevo por la extensiĂłn.

  18. justin
    June 2, 2011

    Love the extension Ashley, i’m a big fan of your blog!

    For some weird reason the extension has stopped retrieving emails from the google inbox… this is the error I get on test:

    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using Google Apps/Gmail configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address support@happycow.com.au:
    Test email was sent successfully.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

    Any ideas? Cheers mate!

  19. Rodrigo
    June 4, 2011

    Is there any way to enable “Reply-to” in contacts with customer’s e-mail ?
    Using your extension, I always get my e-mail in “From” and “To” headers.

    Am i missing something?

    Cheers!

  20. Rodrigo
    June 4, 2011

    Forget my previous comment, I was missing some points. My bad.

  21. yshahin
    June 12, 2011

    I have your module installed, I love it but I found a bug
    when using Email log and filter on TO column I get a MySql Exception

    Any ideas?

  22. Ashley
    June 12, 2011

    Can you provide more info please? Feel free to email it if you prefer..

  23. William
    June 17, 2011

    Hi Ashley,
    First off, great module. It works great!

    I do run into a small issue when trying to click on an email in “tools > email log” I get this error:
    Warning: include(/chroot/home/dev/mysite.com/html/app/design/adminhtml/dev/default/template/smtppro/view.phtml) [function.include]: failed to open stream:
    No such file or directory in /chroot/home/dev/mysite.com/html/app/code/core/Mage/Core/Block/Template.php on line 144

    Site is 1.3.2, not sure if that is the issue or not.

  24. Ashley
    June 17, 2011

    Hi William, check you have the template phtml file installed in the right place?

  25. William
    June 21, 2011

    Ashley,
    I was able to fix this by copying the “app/code/core/aschroder/ ~ /smtppro/” folder into my theme (app/design/adminhtml/dev/default/template/smtppro/view.phtml) where it was looking for it.

    Thanks again for the great plugin.

  26. Jahn
    June 30, 2011

    thank you very much for this extension

  27. Ryanlynx
    July 25, 2011

    I am now getting a 500 Internal Server Error and it redirects and gets stuck showing page http://www.website.com/smtppro/index/index/

    It was working fine, but I then moved my website to a new server and realized I was not getting any of the emails CC’d to me. When running the Self Test I am getting the above error/result. Any tips?

  28. Ashley
    July 26, 2011

    Hi, Ryan – need to know what Apache is logging for that 500 error. Or also check the Magento logs, but probably Apache will hold the answer.

  29. Michelangelo
    July 26, 2011

    Hi Ashley,

    thanks for your effort to improve Magento and our developers work. I would like to know why in a Magento 1.4.2.0 the test works but when I try to submit a order any email starts from the Magento. The configuration seems ok, so I don’t know why it doesn’t work.

    Any suggestion is appreciated.

    Regards

  30. Ashley
    July 26, 2011

    Might be a extension clash by the sounds of it, install the extension clash checker extension and see what it says.

  31. Juan Alvarez
    September 19, 2011

    FOX FOR BUG in 1.4.3

    When in DEVELOPMENT MODE, emails sent from templates should be sent to form contact email but they are not.

    — a/app/code/community/Aschroder/SMTPPro/Model/Email/Template.php
    +++ b/app/code/community/Aschroder/SMTPPro/Model/Email/Template.php
    @@ -48,9 +48,11 @@ class Aschroder_SMTPPro_Model_Email_Template extends Mage_Core_Model_Email_Templ

    $dev = Mage::helper(‘smtppro’)->getDevelopmentMode();

    + $contact_email = null;
    if ($dev == “contact”) {

    $email = Mage::getStoreConfig(‘contacts/email/recipient_email’, $this->getDesignConfig()->getStore());
    + $contact_email = $email;
    Mage::log(“Development mode set to send all emails to contact form recipient: ” . $email);

    } elseif ($dev == “supress”) {
    @@ -64,6 +66,10 @@ class Aschroder_SMTPPro_Model_Email_Template extends Mage_Core_Model_Email_Templ
    // we assume our outbound SMTP server (or Gmail) will set that.

    foreach ($emails as $key => $email) {
    + if ($dev == “contact”) {//By DJ
    + $email = $contact_email;
    + }
    +
    $mail->addTo($email, ‘=?utf-8?B?’ . base64_encode($names[$key]) . ‘?=’);
    }

  32. Jonny Clean
    November 12, 2011

    I have a quick tip – I set this up in less than a minute on one site, beautiful, no issues (Great extension btw, many thanks!) – then I tried on another site – same server, config everything. Gmail kept denying my password. I checked it like 12 times – no dice. I could log in fine to gmail but the extension was not permitted to send mail.

    Here’s the error:
    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using Google Apps/Gmail configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address customerservice@knattydread.com:
    Unable to send test email. Exception message was: 5.7.1 Username and Password not accepted. Learn more at 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 jm11sm20930992ibb.1 …
    Please check and double check your username and password.
    Contact Form test email did not use SMTPPro to send.

    It links to a google help article that directed me to the captcha unlock page:

    https://accounts.google.com/UnlockCaptcha?

    I was sure it wouldn’t work – but it did. It was so random I had to post so that it might help someone else stuck with the same issue.

  33. Sembisoft
    December 5, 2011

    Hi, just installed your extension on Magento 1.6.1 CE. It is running on my dev PC on XAMPP. Can’t seem to connect to TLS, tried to use the google apps option and the smtp option with the same result:
    Unable to send test email. Exception message was: Unable to connect via TLS…

    Any ideas? I am guessing this is an issue with my XAMPP setup?

    Thanks

  34. Tilen
    December 7, 2011

    Hey, same error as the above comment here, Unable to connect via TLS.(Tried using it with SendGrid) Contacted hosting company, they say the ports used are open, contacted SendGrid, they have no idea what could be wrong. Any pointers where could i look for a solution?

    Thanks 🙂

  35. Andrew Griggs
    February 12, 2012

    Hi,

    I’ve implemented oAuth for Google Apps on your module. I did it over a year ago, expecting Zend to implement it into Zend Framework, but, alas, they still have not.

    Would you like a copy? Still a little rough around the edges, but will send emails from any Google Apps account if you have the:
    OAuth consumer key
    (and)
    OAuth consumer secret

    Makes the Google Apps implementation of your module less dependent on the insecurity of users changing their own passwords.

    Regards,
    Andrew

  36. Larry
    February 15, 2012

    Hi,

    I have this error:

    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using SMTP configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address atencionalcliente@optifactory.com:
    Unable to send test email. Exception message was: 5.7.1 : Sender address rejected: not owned by user tee447c …
    Please check and double check your username and password.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

    My hosting is Arsys. Any suggestion on this error?

  37. Sam
    February 22, 2012

    Hi Ashley,

    how do I get your extension to work with google domain alias email accounts? I understand I can only use my primary (not domain alias) account username/password with your extension as google doesn’t create a 2nd account username/password for aliased accounts.

    All good, except when people receive emails from magento they show the primary account name in the From field? Don’t want them to see primary good account in from field.

    best regards,

    Sam.

  38. Josh
    March 2, 2012

    I’m getting a similar issue as some others. My host is dream host, and my MX records are actually pointing to Google Apps.

    SELF TEST
    ———————–
    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using Google Apps/Gmail configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address support@gunvill.com:
    Test email was sent successfully.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

  39. Seth
    March 29, 2012

    Hi, your extension really seems to be a power.

    However I’m not able to receive emails after right SMTP configuration (External STMP Host with User/Pass Authentication on Port 25) on Magento 1.6.2

    I still got the following error:
    Cannot set standard header from addHeader()

    The test email woks great instead!

    Any idea?
    Thx a lot in advance!

  40. Seth
    March 29, 2012

    note: that happens only when “Use Store Email Addresses for Reply-to” is set to Yes. Setting it to No I can get email working only when I set “Development Mode options” to “Redirect Contact to Form Email”

    Any Idea to make it working on production?

    Thx!

  41. achim
    April 12, 2012

    the error from the self test doesn’t give much info, what goes wrong…
    We have installed magento on a dedicated server and would like to use our own external SMTP to send ALL mails. How can we tell e.g. the contact form to send mails via SMTP Pro ?

    SELF TEST
    ———–
    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using SMTP configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address XXX@XXX.TLD:
    Test email was sent successfully.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

  42. Will
    April 24, 2012

    Your extension is great, everything works perfectly I even get the test email. But when I submit the contact form, I don’t receive anything?

  43. Fernando Baruch
    May 17, 2012

    Hi, great module !! I’m writing from Mexico city, it is possible install the module manually? I’ve a shared hosting, on my computer is working fine, but in my server the Magento connect is not working.
    Thanks!!

  44. Fernando Baruch
    May 17, 2012

    Hi, it is possible install the module manually?

  45. jjnini
    May 24, 2012

    ASchroder.com SMTP Pro Self-test results
    Testing outbound connectivity to Server:
    Using SMTP configuration options
    Connection to Host SMTP server successful.
    Sending test email to your contact form address serviceclients@like-you.fr:
    Test email was sent successfully.
    Contact Form test email did not use SMTPPro to send.
    Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.

    Here is my result on test
    My big problem is that Magento send email as nobody even if I place email address in configuration

    Thanks

  46. jjnini
    May 24, 2012

    I use MailChimp and remove the core in config file but still the same

  47. Brano
    July 3, 2012

    I received “Protocol error HTTP 500 (Internal Server Error)” after return / log in to backend.

    Error log looks like this:
    PHP Fatal error: Class ‘Aschroder_SMTPPro_Model_Mysql4_Setup’ not found in /var/www/magento/includes/src/Mage_Core_Model_Resource_Setup.php on line 234, referer

    On line 234 is this code:
    $setupClass = new $className($resName);

    Any idea what to do with it?

    Many thanks in advanced.
    Brano

  48. Jason White
    July 5, 2012

    Wondering if SMTP Pro is compatible with 1.7.x.

  49. Christian
    July 7, 2012

    Hi, I installed the module with GApps – but I receive 2 order emails for each order. One as bcc and one (like configured) as seperate email? Whats wrong?

  50. Christian
    July 7, 2012

    Seems to be my fault – the mail filter showed me the outgoing mails too. Great extension! Thanks.

Comment navigation
← Older Comments
Newer Comments →

Comments are closed.

© ASchroder.com 2023
Storefront designed by WooCommerce.