So, in the last two tips, I have shown how to check the format of the email and save the actual address only in the database. But how to check that the email domain name is valid? Easy!
Read the rest of this entryTip #5 - Cleaning Up an Email Address with Ruby on Rails
April 15th, 2008
So you have an email address field on a form in Rails, but how are you going to make sure that all those users enter a sane and well formatted email address? Here is a simple fix to that problem.
Read the rest of this entryTip #4 - Validating an Email Address with Ruby on Rails
April 14th, 2008
Did you know that Rails has inbuilt a strong email handling library called (ahem) TMail? I just so happen to maintain this now (Minero Aoki wrote it), but it gives you a great way to validate email addresses…
Read the rest of this entryHandling Bounced Email with Ruby and TMail
March 25th, 2008
If you are using a Ruby on Rails app, or Nitro, or just a plain Ruby application that handles email, you will need to handle at some point, bounced messages. This a simple way to get to the guts of the email and find out what the error codes are…
Read the rest of this entryTMail 1.2.2 Out with Ruby 1.9 Compatibility
March 10th, 2008
Well, 1.2.2 is now released. You can get the latest version by gem install tmail or download from the TMail Rubyforge project
Read the rest of this entryContributing to TMail
January 20th, 2008
I recently added a new page to the TMail site, contributing!
Read the rest of this entryUsing TMail Gem in Rails 1.2.6
December 11th, 2007
Ruby on Rails 2.0 includes the ability to load a gem version of TMail instead of the bundled version inside of ActionMailer. However, if you are running on Rails 1.2.6, this doesn’t help you much. Here is how you take advantage of the latest fixes to the TMail library and stay in the 1.2.x branch of Rails
Read the rest of this entryAre you a real programmer?
December 5th, 2007
I might be biased, I might be talking from a lack of experience, but if you are reading this and you are not involved in an open source project, then you are not a real programmer…
Read the rest of this entryS.I.M.P.L.E
December 5th, 2007
THE LESSER-KNOWN PROGRAMMING LANGUAGES #10: SIMPLE
SIMPLE is an acronym for Sheer Idiot’s Monopurpose Programming Language
Environment. This language, developed at the Hanover College for
Technological Misfits, was designed to make it impossible to write code
with errors in it. The statements are, therefore, confined to BEGIN,
END and STOP. No matter how you arrange the statements, you can’t make
a syntax error. Programs written in SIMPLE do nothing useful. Thus
they achieve the results of programs written in other languages without
the tedious, frustrating process of testing and debugging.
(Care of OpenBSD forturne)
TMail 1.2.0 Released!
December 2nd, 2007
TMail 1.2.0 is now out. Here are the gory bits:
Read the rest of this entryTMail 1.2.0 is on the horizon
December 1st, 2007
We are about to release TMail 1.2.0…
Read the rest of this entrySaving TMail into an ActiveRecord model
November 23rd, 2007
ActiveRecord works well when we are saving strings and integers, but what if you want to save a real, live, honest-to-God Ruby OBJECT like a TMail::Mail instance?? Well.. serialize to the rescue!
Read the rest of this entryTMail::Mail#create_forward now returns mail object
November 22nd, 2007
TMail::Mail instances had an instance method called create_forward hidden away in net.rb. We move it up into the big time with ticket 15445
Read the rest of this entryInteresting method definition in ruby
November 19th, 2007
Today, while doing some documentation on the TMail library, I found an interesting method declaration in the interface.rb file that has me stumped…
Read the rest of this entryWhere to start maintaining?
November 18th, 2007
As mentioned previously in the TMail blog, I am now maintaining the code base with another team member. But where to start?
Read the rest of this entry