From: Mikel Lindsaar Date: 2010-01-03T10:00:00+09:00 Subject: [ANN] Mail 1.5.0 --00151774149ca988e6047c381fe6 Content-Type: text/plain; charset=UTF-8 Mail has been screaming along in development over the past month. I have replaced out TMail from ActionMailer with the Mail gem and this is now committed as part of Rails / ActionMailer 3.0. So look out for a lot more Mail action in the new year. Mail 1.5.0 has some API changes from Mail 1.4.x. The biggest that will break your use with mail is that Message#field_name now returns a default value, instead of an object. You can still access the field object by calling Message#[:field_name] or Message#header.field_name This allows us to do the following: require 'mail' => true mail = Mail.new => # "Mikel " mail.from => "mikel@test.lindsaar.net" mail.from.class => String mail.from 'Mikel , ada@test.lindsaar.net' => "Mikel , ada@test.lindsaar.net" mail.from => ["mikel@test.lindsaar.net", "ada@test.lindsaar.net"] mail.date = Time.now => Sun Jan 03 11:49:00 +1100 2010 mail.date => Sun, 03 Jan 2010 11:49:00 +1100 mail.date.class => DateTime mail.content_type 'text/plain; charset=utf-8' => "text/plain; charset=utf-8" mail.content_type => "text/plain; charset=utf-8" mail.mime_type => "text/plain" mail.content_type_parameters => {"charset"=>"utf-8"} You can still access the field objects by going via Message#[:field_name] mail[:content_type] => #