SMTP Pro Magento extension, free and open SMTP support for Magento
TweetWell 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:

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.
If you have any comments, suggestions or feedback, please let me know.
You might also be interested in:
- Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension
- Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)
- Google Apps Email/Gmail Magento Extension v0.5 released
- Magento SMTP, Gmail and Google Apps Email combined extension released (at last)
- New SMTP Pro Magento Email extension released
Tagged as athentication, cram-md5, login, Magento, plain, smtp, ssl, tls + Categorized as Magento, Projects, SMTP Pro Magento Extension, Web Development 'ers make great lovers Tweet
![Email Me: ashley.schroder[at]gmail Email Me: ashley.schroder[at]gmail](/wp-content/themes/aschroder/images/email.png)










Hi,
where can i find the extension?
Best regards
Hi,
The SMTP extension is taking longer than usual to pass through the ‘pending’ state over at Magento Connect. If it hasn’t been published in the next 12 hours, I’ll hoist a pre-release version up on my blog so you can try it out. Cheers, Ashley
It’s published:
http://www.magentocommerce.com/extension/1865
Hey Ashley good stuff.
I have a small feature request for you. It would be really great if you could implement something to temporarily change the to: field of ANY outgoing communication from your store to a debugging address or just turn off all emails. This would be very handy when you are testing with a copy of your store with live customer data or when you are importing orders.
Cheers
Kristof
Hey Kristof, welcome back!
That’s a great suggestion, I’ll add it to 0.6 for sure. How about, something like a dropdown with:
‘Suppress ALL emails’, ‘Debug emails to contact form email address’ and ‘Send emails normally’ (the default).
Work for you?
Sounds awesome.
Doh, just realized I mixed up version numbers, I meant to say, it’ll be in v0.2 (the next version of SMTP Pro) – though it might be nice functionality for the Magento Google Apps / Gmail extension too…
STATUS is alpha can i use it for production shop site?
does this solve the spam problem a bid
?
thanks bluecos
Hi, Bluecos
You _can_ use it for a production store, in so much as there is no technical reason you can’t. Would I recommend it? No not really. Try it out in a staging environment first, if it does what you want it to then roll it out to production when you are ready. The code is largely based on the code in my Google Apps extension, which has nearly 1k downloads and no reports of critical problems. But it’s still very much in development, it’s the first version after all!
What’s the spam problem a bid?
Hi,
i want to try the extension in a german shop, but after the installation i can’t find anything in the admin menu. Does i need a translated Extension? Can i translate it? Where to find the files for a translation?
Hi, I don’t think the lack of a German translation would cause the extension not to work at all. More likely you would need to logout of Magento and back in again, or refresh your cache in the cache management section. If you’re offering to translate it to German that would be excellent! I’ll include placeholder translations in the next release, and then let you know, if you’re still keen to help I’d really appreciate more languages supported
Hi,
surely i can/will help you with your translation!
About my problem: I’ve tried allready to logout and clear the cache but i didn’t find the extension. Is there a step by step manual “how to install the extension”? (i have only download the extension with the “key” and then try to find the options in the admin/system menu – i found nothing)
What version of Magento are you on? You could double check the extension is installed by looking with FTP or SSH to make sure $magento_base/app/code/community/Aschroder/SMTPPro exists?
I use 1.3.2.3 … i reinstalled the module and the ooutput was
—
downloading Aschroder_SMTPPro-0.1.tgz …
Starting to download Aschroder_SMTPPro-0.1.tgz (7,226 bytes)
. . …done: 7,226 bytes
install ok: channel://connect.magentocommerce.com/community/Aschroder_SMTPPro-0.1
—
but the Directory /code/community/ has only the entry for Mage
oh … my fault. wrong directions in the pear.ini
Hi, Glad to hear it’s all sorted. I’ll get in touch with you re: translations once I have the placeholder ones in the next release.
Okay, send me the files and i will translate them. Btw. It seems that your addon don’t work with all shared hoster (eg. Goneo in Germany). Now i use your googlemail addon and it runs very nice! If you would, i can translate it too
Hi, great I will do that, thanks for the offer. Can you give me more details on what was not working with the SMTP extension. Were you using the SMTP to connect to Gogle, or to a shared hosting SMTP? Could you send me any of the failed connection output from the self test or anything? Would be much appreciated. Cheers, Ashley
Great plugin, but I encountered a same problem with your plugin as other SMTP extensions. It is that just invoice and shipping email will be sent, but order confirmation email will not be sent (all settings are on). Is there some coding differences between the order confirmation email part and others?
The uninstall function does not work well. And it might have some conflict with other smtp plugin…..
Another thing is that it does not work well with multiple virtual hosts.
Hi,
Yes naturally if you install two SMTP plugins there will be conflict, please just choose one.
Uninstall should work as with any Magento extension though, can you describe what is not uninstalling? Are the files in app/code/community/ASchroder still? Please give me more info and I can help you out.
Hi, Do you mean ‘virtual hosts’ in the Apache directive sense? Can you explain how these affect Magento or my extension specifically, I use it personally on at least 3 vhosted stores without problem. if there is a bug I’d really like to fix it up!
Hi,
Im getting a 334 error, on the gmail app test. Whats a 334 error?
cheers
JOn
ASchroder.com Google Apps and Gmail Self-test results
Testing outbound connectivity to Google:
Connection to Google SMTP server successful.
Sending test email to your contact form address jon@jeanography.com:
Unable to send test email. Exception message was: 334 UGFzc3dvcmQ6 …
Please check and double check your email and password. If in any doubt you can login to the web interface for your email address to confirm at either ‘mail.google.com/a/your_domain’ or ‘gmail.com’.
Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.
Hi, the 334 error seems to be the one where you need to log in to the web interface to solve a captcha. Give that a try.
Cheers,
Ashley
Hi,
GREAT App!
Really cool that you contribute like this!
I got a problem as it seems anyway.
It seems to work for the testmail… (it did not set the sendersadress though)
But i cant get magneto to send email through your app…
Is there some setting i should change?
Hi, flick me an email ashley.schroder at gmail, I’ll get a few extra details from you and see if I can figure it out.
Hi Ashley and others,
My misstake… i found a bug in a php file that was not related to your code!
So now it all works like a charm.
GJ Ashley!
Any idea what these errors mean?
Failed to connect to Host SMTP server. Reason: Failed to parse address “”(0)
This extension requires an outbound SMTP connection on your specified port.
Sending test email to your contact form address shop@markandersonprints.com:
Unable to send test email. Exception message was: ” does not match the expected structure for a DNS hostname, ” does not appear to be a valid local network name…
Please check and double check your username and password.
Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.
Have you saved before running the test? Looks like an empty SMTP hostname to me?
Ashley,
Yes that did it. I also had to be sure to include 25 as the port number and not leave it blank.
Thanks!
I get an annoying 404, Page not found when I try to run the self test. The URL it tries to go is https://safe.itr.cn/index.php/admin/smtppro/index/index/ .. any idea of what the probelm is?
Hi,
Can you let me know your Magento version? Also have you logged out and back in since installing? Does the URL actually have more to it, after what you posted? Most recent versions of Magento will have a URL key too.
Cheers,
Ashley
Hi Ashley,
Thank you so much for providing this cool tool for Magento. I’m currently working on a project on goDaddy. Manage to get smtp moving a bit, but stuck at this error message.
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Connection to Host SMTP server successful.
Sending test email to your contact form address dreamaker.yang@gmail.com:
Unable to send test email. Exception message was: 502 unimplemented (#5.5.1) …
Not very sure about the error message. can help me out?
Thanks a million.
Hi, sorry i have resolved the previous post issue. but end up with a new problem as below:
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Connection to Host SMTP server successful.
Sending test email to your contact form address dreamaker.yang@gmail.com:
Unable to send test email. Exception message was: 554 The message was rejected because it contains prohibited virus or spam content …
sigh. can help me on this?
I’m not 100% sure to be honest, but I think it’s server related. Try and contact Go Daddy, explain that you’re trying to connect to Gmail’s SMTP server with your PHP application, I’m sure they’ll be able to help. Either way, please report back and let us know for future.
What was the resolution? The suspense is killing me! Also your new error looks pretty self explanatory, I’m just not sure if it’s coming from Gmail or Godaddy. I think Go Daddy issue though, maybe check if they do some filtering on SMTP?
Hi Ashley,
The first issue was solved after a through search on the net for the exception message 502 unimplemented (#5.5.1). Turn out goDaddy doesn’t need to apply the username and password for the smtp server which i’m trying to connect. however i’m still stuck at the second issue. contacting goDaddy and waiting for their reply. will keep you updated too. Thanks!
Hi Ashley,
sorry have to trouble you again. what will be the Self test send out? goDaddy is asking what kind of message will be sending out through the smtp so they can better understand why the spam filter is blocking the self test mail. thank you very much!
Hi, it’s very simple plain text. It looks like this:

Hi Ashley,
sorry we might have a small misunderstanding.
i’m testing the SMTP Pro Magento extension currently, not the Gmail extension. sorry may i trouble you to show me the testing message for SMTP pro magento extension? thanks!
I’m quite lazy so it’s an identical message with ’s/Google Apps/SMTP Pro/g’ basically
Certainly no advertising for medicine that would trip a spam detector!
Hello,
I have a very big problem, that emails are not going out from my e-shop (at the moment it is working as a catalog due to that reason:(((
I don’t know what to do, read all forums… tried everything.. today I risked to install you extension, tried to do the test and the result was the following:
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Failed to connect to Host SMTP server. Reason: ()
This extension requires an outbound SMTP connection on your specified port.
Sending test email to your contact form address info@pledai.lt:
Unable to send test email. Exception message was: ” does not match the expected structure for a DNS hostname, ” does not appear to be a valid local network name…
Please check and double check your username and password.
Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.
Could you please explain me what did I do wrong and what does this note meen? the username and passoword in the test – what are these? if it is a password and username of the server then probably I don’t know it, cause I have rented the server (hosting service).
Thank you in advance
That sort of looks like you haven’t saved the settings in the Magento admin before running the self test, please make sure you do that first and if you still have problems with it let me know.
Hi… we have installed your extension and it works fine so far for all emails on Magento 1.3.2.4! From time to time we are encountering problems with our smtp server so that it is down for just a couple of minutes. We thought of what would happen if someone tries to use the contact form, makes a purchase or the store owner sends confirmation emails (invoice etc) during the downtime of the server when it is temporarily unavailable. We entered wrong connection data in your extension’s config to simulate a not working connection with the following result:
1. The contact form displays an error message on the screen informing the customer that there are technical problems and he/she should try again later.
2. When a purchase is completed it is displayed that everything is ok and an email was just send to the customer which was not the case due to wrong settings. Order information in backend displays that the customer was informed.
3. When sending an invoice, shipping or whatever confirmation the system does not display an error and behaves like everything worked out just fine.
My question is what can we do to ensure that no email is getting lost when the smtp server is temporarily unavailable? Thx for your great work so far!!!
Hi, Thanks for the informative comment. Firstly, if you have times when your SMTP server is down, consider migrating to an always-up smtp server like smtp.gmail.com
But more generally, if the smtp server is down then the behavior of my extension is going to be the same as the default Magento, because it is only the transport that changes, not the logic around error handling and return values. It’s a much bigger job to start trying to change the error handling, because there’s so much more testing involved.
For example, if the order is made but the email send fails and throws an exception reporting that – the order code needs to handle that, and if it doesn’t then silly things (like the order not saving) might happen.
One thing the extension could do, is persist some queue of attempted emails that it retries periodically. I think that kind of change would take a bit of effort, but it’d be quite cool. I’ll add it to the proposed features list for the next version.
Cheers,
Ashley
Hi Ashley.. Thank you for your efforts on this one – You mod has solved a really big issue here
)
Have noticed a rather problematic situation though…
So far the following emails are sending fine…
1, Order Confirmations
2, Invoice Confirmations
3, Shipping Confirmation
4, Password Notifications
But… None of the Newsletter Subscription emails are working at all…
1, Subscription Requests
2, Subscription Confirmations
3, Un-subscription Confirmations
Double Opt-in can’t function without this either.
We have not been able to test any newsletter batches as yet but are hoping to do so if the above can be tweaked??
Thanks again for all your efforts on this It really is a fantastic mod!!
Looking forward to hearing your initial thoughts
Andi
Sounds like an extension is clashing, do you have some sort of 3rd party plugin for email newsletter stuff?
Hi Ashley,
Thanks for your reply.
I thought that this may be the case at first but we have ‘Maison du Logiciel’s Extension Conflict extension’ installed and it is showing no compatibility conflicts with any of the following…
/newsletter /template/Aschroder_SMTPPro_Model_Newsletter_Template
/email/Aschroder_SMTPPro_Model_Email
/email_template/Aschroder_SMTPPro_Model_Email_Template
We currently don’t have any newsletter or email extensions / 3rd party plugin’s installed but I have combed through all of the functions that I thought may be causing this behavior but so far I have not found anything.
The only extension that I thought may have been the culprit, if there was one, is ‘Mage-World.com FreeQuickContact extension’ but I am 100% sure it’s not.
Found it!!
The issue was being caused by a setting in… Admin > System > Configuration > Newsletter > Sending Options (Set Return-Path)
We had this set to ‘YES’ throughout the testing and it seems that this was causing the issue.
Setting this to ‘NO’ allowed the emails to be sent using the configured SMTP settings perfectly.
Thank you for your time on this Ashley and for such a fantastic and ‘well coded’ extension at such a fantastic price 0.00
A Must for all Magento installations!!
Looking forward to following future works!
Thanks for the kind words – and for dropping by to tell others about the issue. You’re always welcome to send me a beer through paypal if you think $0 is underpriced
Ashley,
Great work on this extension! I’m having a bit of an issue getting it to work, though. Here’s the output of the self test:
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Connection to Host SMTP server successful.
Sending test email to your contact form address me@mydomain.com:
Unable to send test email. Exception message was: Warning: stream_set_timeout(): supplied argument is not a valid stream resource in /hsphere/local/home/account/mydomain.com/lib/Zend/Mail/Protocol/Abstract.php on line 237…
Please check and double check your username and password.
Testing failed, please review the reported problems and if you need further help visit ASchroder.com to contact me.
Any thoughts?
well – it is just a warning…. maybe disable warnings for php?
otherwise it looks like it might be unable to open the connection – maybe a firewall or issue with your hosting? Who are you with?
Hi im using your smtp pro with magento when i run selft test i get this Error.
—
Unable to send test email. Exception message was: 554 The message was rejected because it contains prohibited virus or spam content …
—
much like yang im a godaddy user it appears there spam filter is blocking this message. I also found this:
http://michael.orlitzky.com/articles/godaddys_spam_filter_is_broken.php
However, im still looking for a solution since there is no web address in the self run test. If yang found i a solution i believe the same thing would work for me thanks, Calvin
Hi there!
I’m trying to use your extension but it doesn’t seem to be able to connect to the self test – is there an issue with GoDaddy’s mail servers?
Would appreciate any help you can give. Thanks!
Hi, Jon – What’s the error you are getting?
I keep getting errors each time I try. I’ve typed in everything I can’t even count how many times.
Here is the error:
Failed to connect to Host SMTP server. Reason: Failed to parse address “”(0)
This extension requires an outbound SMTP connection on your specified port.
Sending test email to your contact form address s********@****.com:
Unable to send test email. Exception message was: ” does not match the expected structure for a DNS hostname, ” does not appear to be a valid local network name…
Please check and double check your username and password.
Have you saved the settings before running the test? That error seems to be due to empty SMTP host.
Hello,
Any way to download & install this extension without the use of Magento Connect? MC is giving me fits right now and I’d really like to give this a try.
You are supposed to be able to download them directly, but I’ve never got it to work. Email me, I can send it to you.
Hello Ashley,
- the SMTP Pro Magento extension works with Magento 1.4.0.1?
Kind Regards,
Darley
I haven’t tried it yet – if you do, please let us all know?
Hi Ashley,
I keep getting errors on SMTP Pro extension.
Here is the error:
Testing outbound connectivity to Server:
Failed to connect to Host SMTP server. Reason: Connection timed out(110)
This extension requires an outbound SMTP connection on your specified port.
…..
I set the informations as following:
Host: smtp.gmail.com
Port: 587
SSL Security: SSL TLS
Would appreciate give me some help as you can!
Best Regards,
James
Is there a reason you’re not using my gmail/google apps extension for those settings? Might save you the hassle of setting it up – also if that still doesn’t work please paste the output of the self test and I’ll see if I can help.
Hi,
using magento 1.4
installed your extension, but i just get a blank page on any pages that try to send email, includign the self test.
Please enable logging and send me the log output for several email actions (contact form, new account) and also for the self test. Also please include self test result output (if you get any).
Thanks for writing this app. And thank you for being smart enough to include the self test. It is a great feature. I am having the toughest time to get my Magento install to send out any emails. I tested the php mail() function on my server and it works fine. But Magento emails never go out. I am using a remote mail server that is redirected through an A name. But all mail does work for the system.
Using your plugin I am getting the following error code, any thoughts would be greatly appreciated.
Failed to connect to Host SMTP server. Reason: Connection refused(111)
This extension requires an outbound SMTP connection on your specified port.
Sending test email to your contact form address online@americanfireglass.com:
Unable to send test email. Exception message was: Connection refused…
Please check and double check your username and password.
‘Connection refused’ sounds like the remote SMTP server is rejecting your connection. On *nix a simple test is to run the command ‘telnet $your_smtp_host $your_smtp_port’ if that works, then this extension should also be able to work – my bet is it won’t work on that box. Let me know.
Thanks for the reply. I was able to telnet into the system successfully. Very strange.
I’m having problems with the self test no matter what server I use, gmail or godaddy.
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Connection to Host SMTP server successful.
Sending test email to your contact form address aliasbdi+businesses2learn@gmail.com:
Unable to send test email. Exception message was: smtp.gmail.com has timed out…
Please check and double check your username and password.
We use this same userid for our main service (not magento) and it’s fine using port 465.
Any ideas?
Also, why would it create the email address like this .. aliasbdi+businesses2learn@gmail.com when it is actually jlastname@domain.com for the admin user I’m logged in as.
Thank you for your help. I ultimately need to use godaddy smtp server but I’m not sure what port it needs to be and if it uses SSL or SSL TSL at all.
Any help is greatly appreciated.
Hi Ashley
Cool app
, but I have a small (well not that small) problem.
I’m using magento 1.4.0.1 and after installation of your app my order emails are not being sent.. Self test completes successfully , and customers receive newsletter subscription confirm mails but mail with order details is not sent.Any ideas why is this happening ?
Can you confirm what other extensions you have installed? Perhaps try my extension on a fresh install of Magento to confirm the problem is extension related?
@jill 2 things: 1, are you allow +’s in your Gmail addresses? and 2, weird that it’s reporting a timeout error, anything strange on the box with regard to firewall config?
I found out what was wrong
We had System->Config->Sales Emails->Orders->’Send Order Email Copy Method’ set to Bcc and when i changed this to Separate Email everything worked (we have two mails for bcc)…should i change the rest of our Sales Emails settings to Separate Emails, or the ext can support Bcc when there is only one address ?
Thanks for the info – I’ll test this, may be a bug or something has changed in the newer versions.
dear ashley
thanks for your good extension.
i installed it on my laptop and i found it works when i set the config of “use the store adress for reply to” to yes and the store email address is different from the email setting in the extension config, then i can’t get the email any more.
is it possible to get the user’s email address as the reply to on any outgoing email. since i think it is better when user share product from wishlist and send email to his friends.
thanks and rgds.
roger
roger, can you flick me an email or reply here with a bit more information about what you’re describing – it’s not entirely clear to me but it sounds like two things:
1) the reply-to setting breaks your emails entirely
and 2) the emails sent ‘from’ the customer like the tell a friend one for example, should come from the customer or at least be reply-to the customer.
If I have understood you and that’s not currently the case then it may be an issue, and I will fix it. Let me know.
Hi Ashley,
First of all thanks for this great extension…
I’ve installed and tested. Test mails working but normal mails not working.
What can I do ?
Hi, Thanks- Could be extensions clashing, or something else…. Enable logging and paste log output from several email operations (new account, contact form etc), also let me know what extensions you have installed.
salve,
idem Ashley
I’ve installed and tested. Test mails working but normal mails not working.
What can I do ?
thanks
Hi, please enable logging and paste what log output you get from sending test emails, contact form submit and new account creation.
Hi Ashley,
suddenly I receive an error-notice installing SMTP Pro via Magento Connect Manager:
Failed to download magento-community/ASchroder_SMTPPro within preferred state “stable”, latest release is version 1.1.2, stability “beta”, use “channel://connect.magentocommerce.com/community/ASchroder_SMTPPro-1.1.2″ 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
I´m running Magento in Windows XP SP3 with XAMPP 1.7.2.
What am I doing wrong? Thanks for your help!
You need to set your stability to beta before installing (do this on the Magento Connect screen) – I have not set my extension to stable as it is still having features added. Interesting that Magento Connect is referring to ASchroder_SMTPPro-1.1.2 – it keeps reporting an error when I try to upload that…
This is interesting: http://www.magentocommerce.com/extension/specs/1865/aschroder.com-smtp-pro#specs. Roland, can you please let me know how you get on installing it? If the version is as expected then I can finally revert to Magento Connect as the preferred installation.
Hi Ashley!
Thanks for this help with magento!
I’m from brazil and my friends here are getting this error:
PHP Fatal error: Class ‘Aschroder_SMTPPro_IndexController’ not found in E:\home\oculosstor\Web\app\code\community\Aschroder\SMTPPro\Model\Observer.php on line 30
Can you help me?
Thx!
@Matthew and @Marc – Sorry that looks like a bug. I think controllers actually need to be explicitly included. Stand by for a fix.
Ok, the trick was that when executing the self test, the controller is included, and any other time it’s not. But we can’t re-include it, so use
include_oncelike this by modifying theObserver.phpon line 27:// For the self test, if we’re sending the contact form notify the self test class
if($event->getTemplate() == “contacts_email_email_template”) {
include_once “app/code/community/Aschroder/SMTPPro/controllers/IndexController.php”;
Aschroder_SMTPPro_IndexController::$CONTACTFORM_SENT = true;
}
Update: Download the latest SMTPPro Magento email extension release (1.3.1) here.
Ashley,
Thanks for the great app. During development emails were working fine so comfortable with general installation and operation. Have updated to 1.3 and now gone live with site. However, various required changes in going live have mucked up the email. No reason to believe that 1.3 is to blame. Self-test sends the test email fine however contact form will not.
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@lindagorringecouture.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.
Self-test looks to call …../index.php…. contacts(?) when contact form url is in fact site.com.au/contacts (ie. no index.php). Result is that self-test “hangs” on trying to access the contact form. I have to stop and go back to Admin.
I suspect this is a result of .htaccess rewrites. Any suggestions on how to best avoid or circumvent this redirection (if indeed you think that’s what is happening).
Your assistance greatly appreciated.
Cheers from Aus, David
Hi, David – Thanks for the kind words. I take it you’re running the latest version (judging by that self test output)? My extension simulates the contact form email sending from the server side, and then checks that during that sending my extension is invoked to do the sending. If it is not, it’s very likely that some other extension has overridden some of the core functionality I use to send emails. I’d suggest disabling some 3rd party extensions (in app/etc/modules) to see if that helps. The extension shouldn’t actually invoke the URL
/contactsthough. andindex.php/contactsis the same as/contactswhen you have rewrites on – the rewrite is just to put index.php at the start of everything server side. Let us know how you get on.Hello Ashley,
Thanks for taking the time to create this extension! Once I figure out how to get it working properly I know it will be very useful. However, I am currently having two problems.
1. I am getting this message during self test:
Failed to connect to Gmail SMTP. Reason: Connection refused(111)
This extension requires an outbound SMTP connection on port 587. You need to check if your hosting server blocks outbound TCP connections or SMTP connections on port 587, and if so request access. If you are sure your host supports outbound SMTP on port 587 then something else is preventing a test connection. Please visit ASchroder.com for more information.
Sending test email to your contact form address support@diesel-moto.com:
Unable to send test email. Exception message was: Connection refused…
Please check and double check your email and password. If in any doubt you can login to the web interface for your email address to confirm at either ‘mail.google.com/a/your_domain’ or ‘gmail.com’.
2. Contact form fails to send when the Google Apps Email is enabled.
Any help you can provide would be greatly appreciated. Thanks again!
@Tom, Did you check with your host about the outbound connectivity mentioned in the error message – if so what did they say?
hi Ashley, im trying to install your extension but errors come out?
Failed to download magento-community/ASchroder_SMTPPro within preferred state “stable”, latest release is version 1.1.2, stability “beta”, use “channel://connect.magentocommerce.com/community/ASchroder_SMTPPro-1.1.2″ 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
Hi, Paul – you need to set you preferred stability to beta, then try to download again.
BTW – the Magento Connect version is old now – I just haven’t been able to update Magento Connect for months. You can get the latest version here.
hi Ashely, thanks for your reply! i try to download Updated to 1.3.1, then when i unzip the file there only 1 file inside the zip file, there are no package.xml file.
thanks a lot!
Hi, strange – please try again, possible with a different web browser I just did this:
wget http://aschroder.com/wp-content/uploads/2010/06/Aschroder_SMTPPro-1.3.1.tgzand:
tar tzvf Aschroder_SMTPPro-1.3.1.tgz | awk '{print $9}'And got expected results:
package.xml
Aschroder_SMTPPro-1.3.1/adminhtml/default/default/template/smtppro/view.phtml
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Block/Adminhtml/Test.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Block/Log/Grid.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Block/Log/View.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Block/Log.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/controllers/IndexController.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/controllers/LogController.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/etc/config.xml
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/etc/system.xml
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Helper/Data.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Email/Log.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Email/Template.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Mysql4/Email/Log/Collection.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Mysql4/Email/Log.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Mysql4/Setup.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Newsletter/Template.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/System/Config/Source/Smtp/Authentication.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/System/Config/Source/Smtp/Development.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/System/Config/Source/Smtp/Option.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/System/Config/Source/Smtp/Ssl.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Email.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/Model/Observer.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/modules/Aschroder_SMTPPro.xml
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/sql/smtppro_setup/mysql4-install-1.1.0.php
Aschroder_SMTPPro-1.3.1/Aschroder/SMTPPro/templates/adminhtml/base/default/template/smtppro/view.phtml
Aschroder_SMTPPro-1.3.1/modules/Aschroder_SMTPPro.xml
Which looks right to me.
Many thanks Ashely, i try it in firefox browser and i download the complete file… im not sure what problem in my ie?.. try to install and check your extension, thanks for this great stuff!
cheers! and more power…
Did you remember to disable your IE open-source software blocker?
hi, really your extension is great! my smtp email is now working fine, actually i didn’t disable my IE open-source software blocker, peace…. i have 1 more problem, when im trying to use contact page in magento “Unable to submit your request. Please, try again later” this is the error i get? kindly please advise what can i do to fix this one?
many thanks!
Hey Ashley,
Running 1.3.1 of extension on 1.4.1.0 – it doesn’t seem to be heeding settings properly. I have it set to SMTP and both server and port (and auth options) are properly filled in under the SMTP Pro Email SMTP Settings. Send Test Email returns:
ASchroder.com SMTP Pro Self-test results
Testing outbound connectivity to Server:
Using SMTP configuration options
Failed to connect to SMTP server. Reason: Failed to parse address “”(0)
This extension requires an outbound SMTP connection on port:
Sending test email to your contact form address x@y.com:
Unable to send test email. Exception message was: 334 UGFzc3dvcmQ6 …
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.
and the log shows:
2010-07-15T23:28:13+00:00 DEBUG (7): Running SMTP Pro Self Test
2010-07-15T23:28:13+00:00 DEBUG (7): Development mode:
2010-07-15T23:28:13+00:00 DEBUG (7): Raw connection test….
2010-07-15T23:28:13+00:00 ERR (3): Warning: fsockopen() [function.fsockopen]: unable to connect to :0 (Failed to parse address "") in /var/www/x.y.com/app/code/community/Aschroder/SMTPPro/controllers/IndexController.php on line 51
2010-07-15T23:28:13+00:00 DEBUG (7): Complete
2010-07-15T23:28:13+00:00 DEBUG (7): Actual email sending test….
2010-07-15T23:28:13+00:00 DEBUG (7): Preparing the Google Apps/Gmail Email transport, email to send with is:
2010-07-15T23:28:13+00:00 DEBUG (7): Returning transport
2010-07-15T23:28:16+00:00 DEBUG (7): Test email was not sent successfully: 334 UGFzc3dvcmQ6
2010-07-15T23:28:16+00:00 DEBUG (7): SMTPPro is enabled, sending email in Aschroder_SMTPPro_Model_Email_Template
2010-07-15T23:28:16+00:00 DEBUG (7): Complete
this looks like it might be using the google transport, even though set to SMTP? either way, it doesn’t appear to be picking up the correctly set and saved server settings… any ideas?
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.comThen 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.