Note to Self - Extremely stupid programming mistakes with mailers and Mailtrap
Never play with looping code connected to a mailer before disabling all mail sendouts but the terminator. About a week or so ago, I got a clever brainstorm to _massively_ reduce the amount of code in a small app I am working on that sends out mails for a certain piece of functionality without checking to see that the array was being reduced by the removed elements. _And_ I had it connected to the local mailer on my dev system.
I spammed myself with somewhere in the neighbourhood of 2000+ emails to a couple of my test accounts before realizing that the reason the fan on the laptop was suddenly whirring up fast enough to make the thing fly was because of all the mails it wa generating and sending. I had to kill all mails with a postsuper -d ALL to postfix on my dev lappie. Ugh…
Anyhow, someone has obviously pretty much done what I’ve done in the past since they had the very clever idea of creating this simple SMTP auth dummy server called “MailTrap”:http://rubymatt.rubyforge.org/mailtrap/ .
Handy for those of us doing a lot of Rails work these days. Probably not going to use it on this project since will not be messing with the mail code anymore but handy for my next project.
















Entries RSS
No comments
Jump to comment form | comments rss [?] | trackback uri [?]