search for: user_mailer

Displaying 10 results from an estimated 10 matches for "user_mailer".

2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
...mplate_root, ''mailer''), body, self).render(:file => layout) end end the last line is not accepted when running rails 2.0 => ERROR ActionView::ActionViewError (Due to changes in ActionMailer, you need to provide the mailer_name along with the template name. render "user_mailer/signup" render :file => "user_mailer/signup" If you are rendering a subtemplate, you must now use controller-like partial syntax: render :partial => ''signup'' # no mailer_name necessary) in debugging mode, I got : File.join(template_root, ''mailer...
2011 May 20
5
views w locale default template
[RAILS3] I hesitate on how handling the locale view templates to default to one language only .. sending admin emails will go only to one locale ''en_GB'' should I set it up into the template name and set I18n.locale to ''en_GB'' membership_renew.en_GB.html.erb OR whatever locale is used , if I have : membership_renew.html it will be the default ? --
2007 Jun 17
1
actionmailer & picture
...> 8: <% else %> 9: <%= image_tag(p.public_filename(:small), :alt => "user picture", :class => "friendPic")%> 10: <% end %> 11: </tr></td> 12: <tr><td align="center"> Trace of template inclusion: /app/views/user_mailer/vic_announcement.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/asset_tag_helper.rb:207:in `compute_public_path'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/act...
2008 Mar 31
0
Action Mailer Problem with salted hash login generator
...login purpose. Now, I am working in friendship. When I want to request someone for friendship request via the action mailer I get following error: ===================================== Due to changes in ActionMailer, you need to provide the mailer_name along with the template name. render "user_mailer/signup" render :file => "user_mailer/signup" If you are rendering a subtemplate, you must now use controller-like partial syntax: render :partial => ''signup'' # no mailer_name necessary =========================================== As I am new to rails, I...
2009 Dec 21
2
Multiple email recipients
...{ |user| user.email } @subscription.deliver flash[:notice] = "Delivered Subscription" redirect_to subscriptions_url end #subscription.rb def deliver UserMailer.deliver_lotto_saturday_subscription(@user, @subscription) update_attribute(:schedule_delivery, Time.now) end #user_mailer.rb class UserMailer < ActionMailer ::Base def lotto_saturday_subscription(user, subscription) @recipients = ???????? from "lottomail.net" subject "Your Lotto Saturday Reminder" body :user => user end -- You received this message because you are...
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I have a problem. In the rails log it states that the email has been sent but the email is never actually received so obviously there is a problem. I have noticed one in particular and I don''t understand how to fix it. Once I create the user I get the following error message: Net::SMTPAuthenticationError (535-5.7.1
2010 Dec 11
0
Rails 3 - Delayed_Job (collectiveidea), trying to Delay Mailers - Error: NoMethodError (undefined method `delay' for UserMailer:Class):
Hello, I have the following in an observer: UserMailer.delay.msg_notification(record) In user_mailer.rb class UserMailer < ActionMailer::Base ... def msg_notification(record) mail( :to => "#{record.user.email}", :subject => "Notification" ) end .. end But this errors with: NoMethodError (undefined method `delay'' for UserMa...
2011 Jul 07
0
Rails3 Mailer html / text versions order
...e") do |format| format.html { render ''another_template'' } format.text { render ''another_template'' } end end MY USER MAILER ======= def analysis_received(user_id, clip_id, request_id) ...... skipped lines ...... @template = "user_mailer/#{I18n.locale.to_s}/ analysis_received.erb" mail(:to => @user[:email], :subject => "#{@request_type.capitalize}") do |format| format.html { render :template => @template } format.text {render :layout => false, :template => @template}...
2008 May 03
2
ActionMailer Multiple recipients
...:user_url => profile_for(user), :reply_url => url_for(:action => "correspond", :id => user.screen_name) ) flash[:notice] = "Email sent." redirect_to profile_for(user) end end and in models/user_mailer.rb , I have def groupmess(mail) subject mail[:message].subject from '' Test<do-not-reply-J0of1frlU80@public.gmane.org>'' recipients mail[:recipient] body mail end This seems to work , but the recipients never receive any emails. Also I...
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action mailer after it''s first saved in the database. I want to pass the model to the mailer which then uses methods on the message model to render the email. So the natural way to do this is in an after_create callback on the Message model. But I can''t see an easy way to test this. Here''s my spec