From: David Vallner Date: 2006-02-17T09:51:40+09:00 Subject: Re: ruby html (or xhtml) forms class... Dňa Piatok 17 Február 2006 01:13 John N. Alegre napísal: > David (and list) ... > > The parser is no issue that would be pretty much unique to the form and I > have lots of experience with parser code. What I really need is a mailer > that will take SMTP host name or IP and the parsed form info and send it of > to the correct (and sometimes different) email addy. > > Any suggestions? > john > > David Vallner wrote: > > Personally, I don't think I'd use such a magic solution - I prefer a good > > HTTP request parser and a good mailer as separate components, than a > > half-baked mix and match of both. > > > > David Vallner Net::SMTP? Not really a mailer though. I know Rails includes a Mailer component. If I have my facts right, it uses a library called TMail to create the mail messages... The Net::SMTP documentation also recommends RubyMail as an option for mail generation. So, you get the data from the form, compose the mail object to send using TMail or RubyMail, then use Net::SMTP to send the mail object. If what you're doing is simple enough to go without a full blown webapp framework, this should work perfectly. David Vallner