similar to: named routes in mailer templates

Displaying 20 results from an estimated 20000 matches similar to: "named routes in mailer templates"

2011 Nov 21
0
How to use two different sets of mailer templates for two different Devise models?
I''m using Resque to send Devise emails. To do so I set: devise.rb config.mailer = "Mailers::Devise::DeviseMailer" But I have 2 devise models -- User and Client. I want to send different devise mailer templates for each. devise.rb says "The first four configuration values can also be set straight in your models.", and config.mailer is one of those first four, but
2006 Aug 16
0
Parse Rails routes in a text in a DB?
Hi all Is there a way to parse routes of Rails within a text in a DB? E.g. "This is some very great text in a database! You can edit it here: <%= my_route_url :action => ''edit'', :id => 123 %>!" Thanks for infos. Josh -- Posted via http://www.ruby-forum.com/.
2006 May 24
1
ActionMailer (Action Mailer) Template not found? Help!!
I have been going around on the Internet about this all day and found absolutely nothing that seems to fit this problem. I have a mailer named "Notifier" -- in fact I have been using the EXACT code from the "Agile Development With Rails" chapter on "Sending E-Mail", pp. 411-416, except for my names (mailer named "Notifier", emailer method named
2008 Oct 03
4
Action Mailer >> Hiding Receipients in the email templates
Hi, Anyone have any idea about hiding the receipients address in the email template in "TO" field. As am Example: While sending an email to multiple users, the receipients email addresses should not come in the "TO" field in the email template. Thanks in Advance. Piyush. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2005 Oct 09
6
Problem With url_for_file_column/file_column
I am using the very helpful file_column extension in my app. The uploading portion works great - no problems. Where I am having an issue is displaying the images in my view. My code looks like this: <% for @record in @main_box_releases -%> <%= image_tag(url_for_file_column("record", "record_cover")) %> <% end -% @record is an instance of a class called
2006 May 01
0
Same .rhtml and partial in mailer and non-mailer contexts
I have an ActionMailer template that properly generates HTML email. It contains a partial. The mail action was called via the following in my controller: def cmasend @cmaform = Cmaform.find(params[:id]) Mailer.deliver_cma(@cmaform) flash[:notice] = ''CMA Sent.'' redirect_to :action => ''list'' end Then, in order to allow a
2005 Oct 04
3
[Q] file_column help needed
Hi all, I''m trying to use file_column to upload a picture but I''m getting the following error: "cannot convert nil into String" caused by the last line in FileColumnHelper::url_for_file_column(object_name, method) url << object.send("#{method}_relative_path") I don''t have any images uploaded for existing entries so does this not
2012 May 17
0
Two layouts in one mailer
Hi all, I''m having problems figuring out how to know which mailer method is being invoked in the layout callback. In my controller, I have code like this and its working great: class Users::RegistrationsController < Devise::RegistrationsController layout :devise_or_application def devise_or_application ["edit", "update",
2007 Dec 20
4
Ruby on Rails mailer
Today I made a first attempt to make use of ruby mailer. A volunteer fills out a form and the information is then sent to an administrator. I generated a mailer called notifier and added the following: class Notifier < ActionMailer::Base def volunteer_signup(volunteer, sent_at = Time.now) @subject = ''A new volunteer has signed up'' @body = { :title =>
2010 Jan 30
0
Action Mailer: All mail comes from MAILER DAEMON
Action Mailer: All mail comes from MAILER DAEMON. host on slice with postfix and google app. any idea? Please help. Thanks. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Jun 21
0
Action Mailer and ApplicationHelper method
Hi, sorry if this has been asked before, but I couldn''t find any info. Is it possible to use application helper methods in ActionMailer templates (or methods, in case this is the only way)? All I found is one statement in the agile web development book, that ''the regular helper methods, such as truncate(), are available''. Is there any overview which helpers are
2012 Oct 06
1
Mailer (was: Error 0400)
On Sat, Oct 6, 2012 at 5:48 AM, Ady <ady-sf at hotmail.com> wrote: > > Date sent: 06 Oct 2012 10:37:00 +0200 > From: Hullen at t-online.de (Helmut Hullen) > To: syslinux at zytor.com > Organization: Hullen BS > Subject: [syslinux] Error 0400 > Send reply to: helmut at hullen.de, >
2007 Apr 24
3
Deliver sending bounces from 'MAILER-DAEMON@'
Hello, I'm having a problem with postfix and/or dovecots "deliver". I'm getting these lines in the mail log: | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: from=<>, size=3055, nrcpt=1 (queue active) | Apr 24 11:42:08 smtp2 postfix/qmgr[6176]: 05BAE3B67E: to=<MAILER-DAEMON@>, relay=none, delay=0.01, delays=0.01/0.01/0/0, dsn=5.1.3, status=bounced (bad
2012 Feb 24
3
Devise generates Mailer by its own?
Rails 3.1.3 Hi. I''m a little confused with Devise and ActionMailer. It seems that Devise has its own way of sending mails through ActionMailer. Does it generate Mailer class when "rails g devise..." command is executed? Or do I need to do some special command in order to generate Mailer? I have certainly set up a devise User table but there is no Mailer class for it,
2006 May 31
1
mailer - from address not being set
I''m having a weird problem with a mailer model. The from address doesn''t seem to be set - my mail logs it shows that the sender address is the default www@my.server.hostname and this causes the mail to bounce. The mailer code looks like this: def thismail @subject = "Subject" @recipients = "toemail@address.com" @from =
2011 Aug 04
1
how to create a mailer
hi, i got a problem in creating a mailer using rails g mailer UserMailer .. used to send a mail to the user entered e mail-id ...in the form. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2006 Oct 17
3
action mailer, error Subject: Header must not be multiple
i want to send multiple emails: #my Controller def send_email if params[:group_ids] groups = Group.find(params[:group_ids]) # creates an array called ''groups'' that looks like : [{:id => 1, :title => ''yediot''}, {:id => 2, :title => ''maariv''} ] --- [ 1, 2 ] else groups = [] end names = [] emails = []
2006 May 30
2
No rhtml, rxml, rjs... problem with Action Mailer, again
Hi all I have seen a lot of people writing my same problem but I haven''t found the solution yet. This is the problem: "ActionView::ActionViewError in Periodico#index No rhtml, rxml, rjs or delegate template found for..." when trying to send email through action mailer. I have created the Notifier.rb model (in app/models/ folder) def signupthanks(user) # Email
2011 Jun 27
0
Devise Invitable mailer -- how to force text/plain e-mail?
I am using Rails 3.09 and the latest Devise and Devise Invitable. I am able to make Devise send confirmation messages as text/plain just by adding a view properly named to the views/devise/mailer folder. Invitable keeps its views in views/users/invitations/mailer, but changing the name of the file (and the contents) does not seem to affect this at all. Instead, the view is being loaded
2012 Dec 05
0
Action Mailer 3.2.9 retruns duplicates in deliveries array
I am extracting a standalone batch application from a Rails 3.0.1 project. This requires only ActiveRecord and ActionMailer. In my testing I set ActionMailer::Base.delivery_method = :test This causes the mail to be delivered to the ActionMailer::Base.deliveries array. However, I am getting two of the test email messages placed in the deliveries array instead of just one. For example: