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.
- supports self testing right from the Magento admin UI
- logs friendly messages if you enable logging in var/log
- has helpful comments to guide you when configuring
- 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:
And also a screenshot of a successful self test result:
If you have any comments, suggestions or feedback, please let me know.
Hi Patrick. The self test says it is using the SMTP config options, and the 334 error usually means you need to log in to the gmail web interface to respond to a captcha. This most commonly happens when you try too many times to login to SMTP with the wrong user/pass and now Google wants you to prove you are a human, not a robot bent on cracking a password!
Also, have you saved the SMTP settings – it says failed to parse address “” too.
Once you have that part sorted, we can look at this: ‘Contact Form test email did not use SMTPPro to send’ error too, I think it might be thrown off by the 334 SMTP error first.
Let me know how you get on.
hi Ashley, im sorry i have some trouble regarding contact us form, i want to know if your extension have to do with the contact us form? your extension is working fine in my server only thing bothered me all the sent email going to spam folder? kindly any idea how can i fix this…
thanks a lot for your help!
@paul – do you mean the contact form doesn’t work, or the emails it sends you go to spam? If the former, check this Magento contact form error fix if the latter, you can test with a fresh yahoo or hotmail account to see if it is sender or receiver spam issues. Maybe in gmail configure a ‘never spam’ filter?
thanks Ashley for your reply, in contact us page this error “Unable to submit your request. Please, try again later” im getting, i try to check and change the contact email address in my admin system still same error.
and for smtp email – for example i purchased on my store, the order reciept and confirmation of order the email going to spam folder and same as if i request for password reset, all the email coming from my store is going to spam folder. just want to know if done something wrong with your extension?
thanks a lo! and more power!
Hi Ashley, I am trying to get this extension to work on 1.4. I keep getting a 334 error and my settings aren’t saving. I have logged into the web interface to fill out the captcha, but it didn’t prompt me. My other magento settings are all saving fine. Any ideas?
Can you try an install it on a fresh 1.4 – the not saving issue could be to do with a problematic install.
The 334 – might be IP address specific – in which case you can SOCKS proxy through your server to solve the captcha.
Do:
ssh -D 9999 your.server.com
Then in firefox set the advanced connection settings to use a localhost SOCKS proxy on port 9999 – then navigate to your gmail login page and solve the captcha.
First off – Thanks for a great extension! Your a gentleman and a scholar!
Second – Is there a known bug with resetting customer password emails? My customer cannot reset his password and the system does not seem to be sending an email when attempt to reset his password from the admin. No emails are showing up in the log under either scenario.
I just paid $89 for the aheadWorks extension… doh!!
Does your extension handle all outgoing emails such as Send to Friend or Contact form? Or only those with app-generated content?
Thanks Ash!
Hi, bummer!! Mine sends all Magento emails – the only exception is that some extensions send email in a ‘non-magento’ way, and I can’t help you with sending those emails.
Hi,
I have a problem that mail go trough and test is ok, but i dont get email from orders with paypal, just orders that i have that they will deposit to bank account.
But with paypal i dont get any email even when they pay
HI, I have tried installing the extension through Magento Connect, it shows as installing correctly, but I am unable to find the configuration screen in the admin panel, the email log is there, but no config screen.
Any help would be appreciated.
Cheers
Mark
Hi, mhnichols – please try logging out and back in again, and clearing your cache, if there’s still nothing showing up in the System->Configuration->System section of the backend, then we have an issue!
Ashley,
Yes have tried all that but still no luck?
Mark
You could try it on a fresh Magento, perhaps something is clashing?
Hi,
I have a problem and I want to know if is from the smtp module.
I’ve put setup the email orders to send a copy to the admin(BCC email) some of the emails are not found, is not sending some email. I don’t know why. It is possible to be configuration at the server?
Thanks
Hi, I haven’t tried it with the BCC option, can you enable logging and send the output through to me, I might be able to spot a problem.
Ashely, Taking a look at my issues, there appears to be no adminhtml.xml file in the extension folders SMTPro/etc would this be causing it not to appear?
Mark
Hi, Shouldn’t need that for the extension to show up – what version are you running?
Great work, ASchroder – Thank you so much!
Okay, this is embarrassing… I just installed version 1.3.4 on Magento 1.4.1.1 and cannot find the menu item nor can I see the log access under System > Tools.
Any suggestions?
Hi, have you tried clearing cache and logging in/out again? You can verify the extension installed correctly by checking it is in the list under system->config->advanced.
Tried to: Re-install, then Un-Install and Re-Install, Deleted cache, Turned off cache, Logged out-in. Nothing… 🙁 Also, it does not appear under system -> config -> advanced. Did not appear at any of the above mentioned attempts. Any known issues/conflicts with other extensions?
Hi, If it’s not showing in the Advanced section, then it’s not even ‘installed’ as far as Magento is concerned. Can you check the contents of app/code/community/Aschroder and app/etc/modules/ ?
Hi, thanks for the extension. I’ve just insalled it fine, but can’t see anything new in my admin interface. I haven’t found nowhere to activate this module neither.
Have any idea to help me ?
(my version is 1.4.1.0)
just checked….no directory called :app/code/community/Aschroder and nothing like Aschroder in app/etc/modules/
That sounds like the extension is not installed, are you sure it installed correctly?
through magento connect manager, he re what II have
downloading ASchroder_SMTPPro-1.3.4.tgz …
Starting to download ASchroder_SMTPPro-1.3.4.tgz (14,081 bytes)
. . …done: 14,081 bytes
install ok: channel://connect.magentocommerce.com/community/ASchroder_SMTPPro-1.3.4
Can you check in community directory for Aschroder and ASchroder – I notice that release file has a capital.
neither Aschroder nor ASchroder
but perhaps it would be easyer by mail (and less annoying than comments for your readers ?)
just to let people know… Once fixed some PEAR problems (nothing to do with your plugin) on my server, your plugin has got set up quickly and well. Works like a charm. Thanks for your help and for this plugin.
How did you fix PEAR?
I am able to install other Magento extensions ok in MagentoConnect manager.
I am having an install problem:
When I have ‘MagentoConnect->Settings->Preferred state’ et to ‘Stable’
Failed to download magento-community/ASchroder_SMTPPro within preferred state “stable”, latest release is version 1.3.4, stability “beta”, use “channel://connect.magentocommerce.com/community/ASchroder_SMTPPro-1.3.4” to install
Cannot initialize ‘channel://connect.magentocommerce.com/community/ASchroder_SMTPPro’, invalid or missing package file
Install Errors
Package “channel://connect.magentocommerce.com/community/ASchroder_SMTPPro” is not valid
PEAR ERROR: install failed
Then when I switch to ‘Beta’ I get this error:
downloading ASchroder_SMTPPro-1.3.4.tgz …
Starting to download ASchroder_SMTPPro-1.3.4.tgz (14,081 bytes)
. . …done: 14,081 bytes
ERROR: failed to mkdir /home/content/77/6215577/html/development/app/code/community/Aschroder/SMTPPro/Block/Admin
Hi, James – My experience with PEAR is limited, but when I have had to try and fix it it normally was related to pear.ini. I think first try just moving your pear.ini to pear.ini.old (this should cause pear to recreate it when you access downloader) – if it doesn’t you have the .old as a backup. Let me know if that helps.
Hi Ashley,
I am trying your extension with a Gmail. I am running Magento v1.4.1 on a WAMP environment.
I configured everything and saved. But unfortunately I am getting the following error after I run the 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 andre.c.mendes@gmail.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.
I am using the “Google Apps/Gmail” option so the is no manual SMTP setup involved. Moreover, my email address and password are correct for sure.
Do you have any ideas of what might be wrong?
Thanks in advance!
André
Hi, André – Check your server can access gmail’s smtp servers on ports 465 and/or 587? Check SSL is installed and setup for PHP. The connection test should have done the port check already – but that error makes me think that’s the problem or SSL. I haven’t used Windows for about 8 years, so I’m not a good person to ask about Windows hosting issues.
Hi Ashley,
Thank you very much for your reply.
Your tips helped me figured it out: I was missing the module php_openssl.
This is a great Magento extension. Contratulations for your nice work!
Cheers,
André
you made my day man 🙂
After running the Self Test I gett the following 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 info@avpresentations.nl:
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.
What can I do to solve this?
@Mike, are the emails sending? If so, may be a red herring. Let me know.
Yes the emails are sending as for as I can see.
What do you mean by red herring? That its not bad?
Yeh, I think it’s not actually an error, the self test seems to give false-negatives sometimes and I’m not sure why. If in doubt, try disabling some other extensions and see if the self test comes right.
how self test?
Howdy – getting 404 on self test and log page. did logout / login — any thoughts?
@Matt – I replied with a possible lead over at your other comment.
I’m using the extension, everything is working great except “Email to a Friend”. When the extension is enabled and a customer uses the “Email to a Friend” feature, my store’s email address is shown as the sender’s address instead of the customer’s. So if their friend replies to the email, it comes to me instead of the customer. When the extension is disabled, everything works fine and the customer’s email address is the sender’s address.
Hi, Adrienne
Are you using gmail/google apps for your emails? If so then the from address will always be the actual from address, but you should see the reply-to header being set so that when the customer replies it goes to the friend, let me know if that’s the case.
I am using Google Apps. The replies are coming to me, not the customer. After further testing, it appears that the sender’s email address appears as the reply-to email address only if they have a gmail email address, otherwise, the replies are sent to my store’s email. Weird.
Hi, It must be email client specific – the header is being set, it’s up to the client to interpret it. What client are you using for your non gmail testing?
Hi,
I seem to have the “says it’s installed, but no configuration panel” problem described by others. Magento is 1.4.1.0, and have installed the extension via Magento connect.
Can you clue me in as to how to troubleshoot this? I’m wondering whether to uninstall via Connect, and reinstall manually, but am wary of messing up a production store…
Cheers,
PhilK
PS This will be exactly what I need when I figure out how to fly it! 😉
For me I had to change to Connect setting from stable to beta to install. That fixed my “PEAR ERROR: install failed” error similar to James Tripp’s. After that it was a smooth sail! Thanks for the great (and free) piece of nice software.
Ed
Jabez Networks, Inc.
Magento E-commerce, SEO, China Marketing
Hi,
When I look in magento connect, it shows installed, however when I go to Magento Admin -> System -> Configuration -> Left Menu: Advanced -> System -> SMTP Pro Email
all I see is the Mail sending settings.
Any help would be great!!