-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 19, 2005, at 11:20 PM, Kevin Brown wrote:
> I'm trying to use ActionMailer without rails.  Perhaps I'm tired,  
> but I am
> quite confused by the following:

Follow the example code at the top of
   http://api.rubyonrails.com/classes/ActionMailer/Base.html

A condensed example:
   require 'action_mailer'

   class Emailer < ActionMailer::Base
     def test_email(user_email)
       subject    "Free C1Alis"
       from       "system / example.com"
       recipients user_email
       body       "Get large, #{user_email}!@"
     end
   end

   Emailer.deliver_test_email('testuser / gmail.com')

Delivery is via SMTP @ localhost by default.

Kindly take further Rails-specific discussion to the Rails list.
The Ruby list is mighty busy and Rails chatter decreases its S/N.

Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDgDTTAQHALep9HFYRAiwLAJ9k12/qlnOTvHFuxdkrR4rqsxMuFACgrQWz
7nd1WtzgK5KoMrw/vYTL8D0=
=Hccn
-----END PGP SIGNATURE-----