From: Kirk Haines Date: 2006-04-19T05:50:51+09:00 Subject: Re: Google Summer of Code update On Tuesday 18 April 2006 2:40 pm, James Britt wrote: > > Email.send(:to=>'yoohoo@somewhere.com', :from=>'me@here.com', > > subject=>'Hi there buddy', msg=>'How are you doing?') > > That looks like the code I use to tell me when my arm of mutant robots > has located a decent DVD listing on the local library Web site. > > Basic mail sending really is that simple. Aside from setting the MTA > domain and mail headers, there's not much to it. (I believe I've posted > my code to this list within the last month or so, too.) Yes. What you show above could be implemented as a very simple wrapper around tmail. It would only save a handful of lines, though, over just using tmail directly and passing the tmail object to something like this for sending: def send_mail(mail) Net::SMTP.start('smtp.myserver.com', 25, Socket.gethostname) {|smtp| smtp.send_message(mail.encoded, mail.from, mail.to) } end Kirk Haines