Hiemdull,
I find this thread wonderfully useful and interesting...is there a
chance you could show an example of the views/customer_mailer/
welcome_message.html.erb ?
Is customer_mailer a controller also?
I am grateful for a comprehensive example.
Thank you,
Kathleen

On Sep 30, 10:38 am, carlskii <[EMAIL PROTECTED]> wrote:
> Thanks for the reply, I assume I need to define some configuration
> within the environment.rb for this to work?
>
> Regrds,
>
> Carl
>
> On Sep 30, 5:18 pm, heimdull <[EMAIL PROTECTED]> wrote:
>
> > ruby script/generate mailer customermailer
>
> > models/customer_mail.rb:
>
> > class CustomerMailer < ActionMailer::Base
>
> >   def welcome_message(sent_at = Time.now)
> >     @subject    = 'CustomerMailer#welcome_message'
> >     @body       = {}
> >     @recipients = ''
> >     @from       = ''
> >     @sent_on    = sent_at
> >     @headers    = {}
> >     @body["email"] = ''
> >   end
> > end
>
> > views/customer_mailer/welcome_message.html.erb
>
> > This will be your email message
>
> > and now send it with this:
>
> > customer_mail = CustomerMailer.create_welcome_message
> > CustomerMailer.deliver(customer_mail)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to