Sandeep Gudibanda
2008-Oct-01 06:32 UTC
ar_mailer issue - emails not getting saved into DB
Hi,
I just installed ar_mailer. When i trigger an action that sends out
feature update mails to everyone, absolutely nothing gets stored in
emails. But instead i see in log/development.log that
Sent mail:
From: admin-45x8pN47qX/QT0dZR+AlfA@public.gmane.org
Subject: XXXXXXXXXXXXXXXXXXXXx
Mime-Version: 1.0
Content-Type: text/html; charset=utf-8
Am i missing something here, why are mails not getting stored in emails
table. Worse still in production mode, it doesnt even run.
The steps followed:
1.
I have created a new model email.rb which contains
class Email < ActiveRecord::Base
end
2. I have one more model mass_notifier which contains:
class MassNotifier < ActionMailer::ARMailer
def feature_updates(profile)
recipients = "#{profile.email}"
@from = "admin@xxxx"
@subject = "XXXXXXXXXXXXXXXXXXXXXX"
@body[:name] = profile.display_name
content_type "text/html"
end
end
3. In environment.rb
I have added require ''action_mailer/ar_mailer'' after the
config block
in
4. In development.rb
config.action_mailer.delivery_method = :activerecord
5. In controller:
i call MassNotifier.deliver_feature_updates(arguments)
Please suggest,
SG
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Sean Mcgilvray
2009-Feb-10 19:36 UTC
Re: ar_mailer issue - emails not getting saved into DB
Where you able to fix this problem? I am having the same issues. Thank you, Sean McGilvray -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Filippo Camillo
2009-Feb-25 14:31 UTC
Re: ar_mailer issue - emails not getting saved into DB
Hi, somethings new? Thank you! Filippo Sean Mcgilvray wrote:> Where you able to fix this problem? I am having the same issues. > > Thank you, > > Sean McGilvray-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sandeep Gudibanda
2009-Feb-25 16:28 UTC
Re: ar_mailer issue - emails not getting saved into DB
Hi, Do you have action_mailer_tls installed too? I guess that did the trick! but its been a while I solved it. Lemme know if it works for you. Regards, Sandeep G -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Filippo Camillo
2009-Feb-25 16:34 UTC
Re: ar_mailer issue - emails not getting saved into DB
Thank you Sandeep...i solved using rails 2.1.1 instead of 2.2.2! I suppose that there are some incompatibility issues. Many thanks! Filippo Sandeep Gudibanda wrote:> Hi, > > Do you have action_mailer_tls installed too? I guess that did the trick! > but its been a while I solved it. Lemme know if it works for you. > > Regards, > Sandeep G-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sandeep Gudibanda
2009-Feb-25 16:36 UTC
Re: ar_mailer issue - emails not getting saved into DB
Great! sgudibanda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org is my email. Do keep in touch. Filippo Camillo wrote:> Thank you Sandeep...i solved using rails 2.1.1 instead of 2.2.2! I > suppose that there are some incompatibility issues. > > Many thanks! > Filippo > > Sandeep Gudibanda wrote: >> Hi, >> >> Do you have action_mailer_tls installed too? I guess that did the trick! >> but its been a while I solved it. Lemme know if it works for you. >> >> Regards, >> Sandeep G-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---