ActionMailer without rails

Hi.

Could someone post here a simple example of sending a mail throught a
smtp server from ActionMailer but outside rails??

I mean, a simple script starting with:

require ‘rubygems’
require_gem ‘actionmailer’

#stuff that sends some text by smtp

I’ve been trying but I can’t get it to work.

Thanks everybody.

Why not just use the Rails environment with script/runner?

Just curious, and wondering whether it’s really worth the time?


– Tom M.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs