Monday, April 11, 2011

[Rails] Re: Help with sending emails

On Apr 11, 8:19 am, vone vonich <li...@ruby-forum.com> wrote:
>
> In app/views/notifier/newgrants_notification.erb wrote : Hello!
>
> and this my controller where i create question
>
> @question = Question.create(:text => params[:question][:text], :security
> => rand(888).to_i)
>
> if success = @question.save
>   respondents = Respondent.find(:all)
>   respondents.each do |res|
>     Inquiry.create(:question_id=>@question.id.to_i,
> :respondent_id=>res.id.to_i)
>     Notifier.newgrants_notification(respondents).deliver #this is
> right??
>   end
>
> what mistakes i did? messages aren't coming ;(

How have you configured actionmailer? The default is to use sendmail,
but that will only work if you have a functioning sendmail install on
the machine you are running on.

Fred

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate