I want to use ActionMailer outside of Rails. Whats the best way of accomplishing this?
People succeed in answering Don Miguel de los Platanos's questions 42% of the time (8 successes in 19 attempts).
Answers by: Rich Collins
How are you going to use it?
I have a script that generates a file and needs to send this file as an attachment to some email addresses. Someone suggested actionmailer for this task. In the standard ruby net::smtp , it does not support attachments, meaning I would be responsible for doing all the encoding of the attachment and setting message boundries, headers. I didn't want to reinvent the wheel so to speak. I ended up finding http://sonic64.com/2004-11-01.html which I adapted portions into my script.