On Jan 16, 2008, at 1:57 PM, Peter Bailey wrote: > Wow! I need to look closely at this. This looks incredibly complicated > to me. How come you literally had to go in and create your own class? > Isn't there anything already available? > > I'll dive in. Thanks a lot, > Peter > > > -- > Posted via http://www.ruby-forum.com/. > sure. msg = "To: %s\nFrom: %s\nSubject: %s\n\n%s" % [@to, @from, @subject, @message] Net::SMTP.start("localhost"){|smtp| smtp.send_message msg, @to, @from } you'll need to encode you attachments by hand though. the class i posted is just a wrapper on doing the above by hand each time. mailfactory is really nice for building the actual email body too. as far as built in is concerned though - net/smtp is as high level as it gets. regards. a @ http://drawohara.com/ -- sleep is the best meditation. h.h. the 14th dalai lama