Displaying 20 results from an estimated 7000 matches similar to: "ActionMailer::Base helper :all"
2013 Jan 14
0
ActionMailer helper :all
The problem is: ActionMailer doesn''t include view helpers by default, and
helper :all makes it to look for all_helper.rb
Similar issue was discussed before:
https://rails.lighthouseapp.com/projects/8994/tickets/3945-helper-all-on-by-default
https://github.com/rails/rails/issues/928
https://github.com/rails/rails/issues/1582
Steve Klabnik told me to post here:
2009 Jul 30
0
Problem with implicit multipart emails using ActionMailer in Rails 2.3.3
With earlier versions of Rails ActionMailer used to implicitly send
multipart (text/plain and text/html) email messages for me, but it
looks like now it''s sending two text/plain parts.
Simplified details:
Here''s my model:
class Notifications < ActionMailer::Base
def confirmation(sent_at = Time.now)
@subject = ''Thank you for registering''
@body
2006 Jun 05
1
Action Mailer contact form
I am trying to use Rails and the Action mailer to create a simple contact
form on a website. I am using a table-less model to validate the form
contents, then trying to use the Action Mailer chapter of the "Agile Web Development
with Rails" book as a pattern to develop the send e-mail portion. I am
having trouble getting it working and was hoping someone could point me in the
2009 Mar 06
5
ActionMailer Layout on HTML version not Plain Text
I''m sending plain text and html emails by having multiple files for each
email I send. For example, for my registration email I have a
registration.text.plain.erb file and a registration.text.html.erb file.
I want to use a layout for the html version of my emails. In my mailer
I put:
class AccountsMailer < ActionMailer::Base
layout ''email''
...
end
2009 Jan 18
3
ActionMailer and url_for in helper methods
Hi,
I was wondering how to get url_for to work inside ActionMailer. I did
research on the web but I can''t seem to find something that fits what I
need.
In my application, each user can specify their custom domain to access
their. I have an ActionMailer that sends them notifications of changes
that occur. In there, I have a breadcrumbs helper method, which
generages something like:
2008 Apr 09
0
Understanding ActionMailer::Base.new
While writing a small plugin I stumbled upon this strangeness. I have
TMail objects stored in database for process that sends them out
whenever needed.
Obvious way of sending them out would be calling
ActionMailer::Base.deliver(my_mail_object)
That works just fine. However I have method chain hooking into instance
method deliver!:
alias_method_chain :deliver!, :something_crazy
so I need to
2011 Feb 05
1
ActionMailer::Base.default_url_options
Hi,
I want so set a default url for ActionMailer. I know,
ActionMailer::Base.default_url_options is deprecated, so I use
config.action_mailer.default_url_options = {
:host => "localhost"
}
in my environments (test.rb, production.rb, ...). The problem is, I get a
deprecation error and rails won''t start. I have no solution...
Any hints for me?
Testing started at
2007 May 21
0
Helpers not available to ActionMailer classes in backgroundrb
Hi there,
I''ve got a problem I''m hoping someone else has run into before and might
have some tips on.
I have an ActionMailer class where I''m manually including my application
helper along with simply_helpful for use in my html emal templates.
This works fine when calling the mailer class from another model class..
(example.. @order.deliver_emails would be a method
2013 Mar 23
0
Rails4 and ActionMailer::Base.deliveries
Can someone who is working with Rais 4 verify
if ActionMailer::Base.deliveries returning valid data or an empty set? I''m
looking at the ActiveMailer source code and changelog and nothing jumps out
at me.
This is with the same code and configuration that worked for me in Rails
3.x but now with Rails 4.0.0.beta1 and Ruby 1.9.3p374. delivery_method is
set to :test in both my
2013 Jan 08
3
[SEC] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
Hi everybody.
I''d like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security fixes** so please update **IMMEDIATELY**.
You can read about the security fixes by following these links:
* [CVE-2013-0155](https://groups.google.com/group/rubyonrails-security/browse_thread/thread/b75585bae4326af2)
*
2013 Jan 08
3
[SEC] Rails 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released!
Hi everybody.
I''d like to announce that 3.2.11, 3.1.10, 3.0.19, and 2.3.15 have been released. These releases contain two **extremely critical security fixes** so please update **IMMEDIATELY**.
You can read about the security fixes by following these links:
* [CVE-2013-0155](https://groups.google.com/group/rubyonrails-security/browse_thread/thread/b75585bae4326af2)
*
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running
fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a
major error when sending a confirmation email :
mailer.rb
class Mailer < ActionMailer::Base
....
# Renders a message with the corresponding layout
def render_message(method_name, body)
layout =
2007 Aug 10
1
ActionMailer and Dreamhost
Hello,
I am running my RoR app on localhost and am trying to implement
ActionMailer. In my environment.rb config file, I am pointing to my
smtp server on Dreamhost:
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.server_settings = {
:address => ''mail.domain.info'',
:port => 25,
:domain =>
2006 Aug 15
0
ActionMailer
Im trying to send an email see the code below:
Model: order_mailer.rb
class OrderMailer < ActionMailer::Base
def send_an_email()
@recipients = "myadress@isp.co.uk"
@from = "myaddress@isp.co.uk"
@subject = "Ruby Test"
@body = "The Body"
end
end
View: send_an_email.rhtml
<p>Email was sent!.</p>
Controller: Admin.rb
def
2006 Nov 29
1
actionmailer on Debian Etch
Hello,
I have two debian etch systems, both have rails. I have installed them
with apt, not gems. No problems so far.
Now I have tried to use the actionmailer. The results:
mage@miranda:~/temp$ rails mailer
create
create app/controllers
[....]
create log/test.log
mage@miranda:~/temp$ cd mailer
mage@miranda:~/temp/mailer$ script/generate mailer Letter test send
2007 Aug 10
0
ActionMailer::Base
As part of testing/learning, I''m trying to create a my class based on
the ActionMailer::Base object in the script/console and calling
methods I added.
I can call the receive method but I can not call any of my other
methods.
If I run this, IncomingMsgHandler.methods at the console I don''t see
my new methods listed. I have closed and restarted the console
session thinking maybe
2012 Jul 06
2
ActionMailer::Base.deliveries returns array with duplicated elements in production env
Hello, I am testing for email sending from my app and I have a scenario
that passes in test env but not in production. When I make dump of
ActionMailer::Base.deliveries I saw that it returns array with duplicated
elements in production env but not in test env. I am using sqlite3 for test
env and mysql for production. Also I use delayed_job. Does anyone had the
same issue? Thanks in advance :)
2006 Mar 14
1
ActionMailer Error - Please Help!
I''m trying to send an email to myself when someone comments on my site.
Here''s my code, if you don''t mind, could you tell me if you see
something wrong?
#environment.rb
# Include your application configuration below
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:domain =>
2006 Mar 14
2
ActionMailer not working correctly
Anyone know why this wouldn''t work? I''m using acts_as_authenticated for
my login, and the mail is not getting sent. I''m using dreamhost. Here''s
my settings:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:port => 25,
:domain => ''mydomain.com'',
2006 Aug 14
0
ActionMailer in an infinite loop? Looks like framework bug.
I would rather post this on the dev list since it looks like only the
developers can explain why this is failing. However, I can''t find where
you subscribe to it! Any ideas?
Here is my problem. Whenever I try to send an email I get a
SystemStackError saying stack level too deep. Here is the exception
trace: