Rails List wrote: > Do you get links on other than gmail or rediff? > > Do you have action mailer instance under model folder? Have defined > methods within it? > > Here is a brief; > > ruby script/generate mailer Notify > > This should generate the following in your model directory and under > folder in your view. > > class Notify < ActionMailer::Base > end > > now, you define methods with in models/notify.rb > > class Notify < ActionMailer::Base > > def notifycustomer(blahh, blah) > @subject = "Message from a visitor" > @recipients = blahh.email > @from = blah[:email] > @sent_on = Time.now > @body["title"] = blah[:msg] > end > end > > in your controllers action you would trigger it > > def sendmail2customer > Notify.deliver_notifycustomer(@blahh, params[:blah]) > end > > in your view, you will have sendmail2customer.html.erb which might have =============================================================================== Hi! You are having one email message from <%= @email %> with a title <%= @title %> and following is the message: <a href = "www.localhost:3004/Email" > Confirm </a> Thanks ============================================================================= I am getting this Hi! You are having one email message from [email protected] with a title Confirmation and following is the message: <a href = "www.localhost:3004/Email" > Confirm </a> Thanks -- Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

