Tag archive for ‘smtp’
New SMTP Pro Magento Email extension released
I’ve had a chance to make a couple of improvements to my SMTP Pro email extension for Magento. Both changes are not exactly life altering, one adds extra error detection to the self-test, and the other fixes a header problem with the self-test (reported by Phil). More details follow about the changes, if you want to get the extension, download SMTP Pro on Magento Connect. (Updated: finally on Magento Connect!)
I now send a real live contact form message as part of the testing – and ensure that when the email sends, my extension code is actually being called. I’ve had a lot of people reporting problems with emails not sending lately, only to find it’s because some other extension is interfering with my email sending. This tweak to the self test will help identify those issues.
This is implemented as a static variable on the self test controller, that is set before sending the test email and then altered by the email observer (if it is called as expected):
// Now we test that the actual core overrides are occuring as expected. // We trigger the password forgot email, as though a user had done so. self::$CONTACTFORM_SENT = false; $this->_sendTestContactFormEmail(); // If everything worked as expected, the observer will have set this value to true. if (self::$CONTACTFORM_SENT) { $msg = $msg . "<br/> Contact Form test email used SMTPPro to send correctly."; } else { $success = false; $msg = $msg . "<br/> Contact Form test email did not use SMTPPro to send."; }
and the code in the observer that alters this variable:
// 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; }
The other change was trivial, adding a ->setFrom() call when sending the test email. Thanks to Phil for pointing that out.
Lastly, Eric requested a useful feature which I will add, but I haven’t had time to put that in to this release, next time!
Let me know any feedback you have on the changes, or if you’re having trouble sending emails in Magento – feedback welcome.
New Magento SMTP features: Email logging and email sending events
I had a longer than usual train ride on Friday, thanks to missing my usual one by about 20 seconds! The good news is, during the extended train ride I have added some new functionality to my SMTP Pro magento extension – it now optionally logs all emails to a database table and you can view the detail of them from within the Magento admin interface. I still can’t upload it to Magento connect however, so please download the release from here and let me know how it goes. Update: Fixed bug pointed out by Luis below – new release is 1.1.1.
I have also added a nice little event firing mechanism – I’m inviting fellow developers to suggest events they want fired, to make manipulating outbound emails easier for other extension developers. Currently the only one is smtppro_email_after_send but there is scope for adding many more – contact me!
I’ll add some notes about the new functionality below, but just to recap using my free smtp extension for Magento you can now:
- Configure Magento for sending email with any SMTP server
- Easily configure Magento to send email with GMail or Google Apps Email
- Diagnose connection problems using the email self test
- Send using a number of different gmail/google addresses if your email volumes are very high
- Enable a development mode and an email suppression mode
- View a log of all email sent from within Magento, the date they were sent and search and filter the list of emails
- Hook into a growing number of email related events to extend the email capability of Magento
All for free too, I think it compares favorably with the commercial extensions that offer the same functionality. I’d appreciate any opinions on that, as I’m aiming to have the best email extension for Magento. Anyway here’s some info about the new features, in case you care.
Read more…
Pre-release: SMTP Pro / Magento Gmail & Google Apps Email Beta testing (win a prize)
In a bid to help solve a weird 404 error that Kevin has been experiencing with the self test I offered him a pre-release copy of my upcoming ‘unified’ Magento email extension. It will support both SMTP and Google Apps/Gmail along with a few new features.
Anyway, if anyone is keen to try the extension please contact me or flick me an email or post a comment and let me know, I’ll send through the files, I’d rather not post it for public availability here yet, because it’s not as stable as I’d like. But expect it very soon!
Read more…
Sneak Peek at the New Magento Gmail/Google Apps and SMTP extension
Wow a month since my last blog post, I’ll have to stop calling this a blog and make it a magazine if these blog posts don’t get more frequent huh?! Anyway, I do have something interesting to report from the world of Magento email extensions, particularly my Google Apps/Gmail extension and my SMTP Pro extension are in for a bit of a shake up.
Read more…
SMTP Pro Magento extension, free and open SMTP support for Magento
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.
Read more…
![Email Me: ashley.schroder[at]gmail Email Me: ashley.schroder[at]gmail](/wp-content/themes/aschroder/images/email.png)










