Displaying 20 results from an estimated 4000 matches similar to: "ActionMailer cancel send from one of deliver_* methods"
2008 Oct 17
1
ActionMailer template gets nil param from non-nil deliver_
Rails 1.2.6
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
=Summary:
I pass a non-nil parameter to an ActionMailer class''s deliver_* method.
The corresponding * instance method for the ActionMailer gets a nil
instead. Disaster ensues.
Will someone please tell me what I''m doing wrong?
=Details:
I have an ActionMailer::Base class with the following template
2006 Jul 21
3
ActionMailer doesn''t send any mail
I''ve configured actionmailer following the documentation, adding to
environment.rb everything for using my mail account on yahoo using
deliver_* methods to send a mail.
I can see the mail in development.log and everything seems fine, but
no mails so far.
Is there a place where can I see what the server answered, or
something to look at to solve the problem ? I have no clue,
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
It''s been fifty days since our last confession, so it''s no wonder that
this outpouring is by far the biggest yet in Rails history. It''s
absolutely packed with goodies ranging from a whole new framework for
sending email to the smallest new alias for an existing method. In
total we''re just shy of 100 additions, changes, tweaks, and fixes.
This is also
2006 Jan 06
10
I need debugging tips?
Hi all,
Like most other frameworks, Ruby groups code by Model/View/Controller instead
of by task, and therefore I''m having a hard time debugging a problem from the
Agile Rails book where looping through @items errors out because one or more
items is nil.
I managed to empty the cart by placing session[:cart] = nil in find_cart() in
the store_controller_rb, and the problem continued
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 Sep 09
2
actionmailer HELP
Hi,
I want to receive emails with actionmailer.And I try to do this example:
http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer
I am working on windows and I couldn''t set up Actionmailer for windows.
How can I configure actionmailer for windows? I am glad,if anybody can
help me
Regards...
--
Posted via http://www.ruby-forum.com/.
2009 Aug 06
18
Best Practices Question
Should models call action mailers, or should those calls always
originate from controllers? For example, should user.forgot_password
send the email, or should the user_controller.forgot_password?
Just looking for some opinions...
Thanks,
Tom
2006 Aug 16
3
Validate your forms with a table-less model
Ive followed this example of how to validate a form with a tableless
model:
http://rails.techno-weenie.net/tip/2005/11/19/validate_your_forms_with_a_table_less_model
Ive got this example working but when validation fails the failed boxes
are not highlighted in red. At the moment i have a contact details form
and want to validate the information entered by the user but this will
just result
2005 Nov 17
7
render :partial in mail template
Hi,
Is it possible to render a partial template from within a mail template?
I get the following error
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #8):
5:
6: <%= @url %>
7:
8: <%= render_partial ''sig_admin'' %>
Jeroen
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all-
I am building an application that includes a login screen. During
development I found that user passwords are logged by Rails in plain
text -- this will not be acceptable to my users. Is there a way to
obscure/encrypt incoming password parameters or not write them to the
log files at all? One thought was to use Javascript, but I was not sure
how secure that would be.
Thanks,
Josh
2007 Apr 01
8
No stacktrace on errors (edge rails)
Hi,
I must be missing something or have something misconfigured, but I
get no stack-trace when there is an error in the code behind a view.
If the view doesn''t compile, then I see an error & stacktrace, but
all other errors I get a "lost network connection" from the browser,
and nothing at all in the server output or development.log.
It''s been that way with
2008 Jun 23
1
ActionMailer Fails To Send Emails Post Authentication
I am trying to send emails via actionmailer.
It was working fine before and now suddenly what was working is no
longer working!
I have one version of the application running in production and whenever
I try to run it in production I get the error No connection could be
made because the target machine actively refused it. - connect(2) (see
details in the attached text file)
Now when I try to
2006 Nov 26
0
send email using Actionmailer => error 500 gets rendered :/
I''m experiencing the strangest problem with actionmailer.
The following code reults in a 500 server error.
---
UserMailer.deliver_register [some arguments]
render :partial => "validate_email" , :status => 200
---
The strange thing is, Actionmailer sends the email just fine. But
instead of rendering the partial, a 500 error is being returned.
I''ve also tried to
2009 Oct 09
0
Tell ActionMailer to use a specific IP address to send
Hello everyone
Ubuntu 8.04 64bit Rails 2.3.2
I have multiple IP addresses on a server, with an alias setup to handle
it
eth0:0 IP 1.1.1.2
eth0 IP 1.1.1.1
We run one app on one IP, and the other on the other IP(ssl
restrictions)
The app on 1.1.1.1 is allowed to send mail through our gateway.
What''s happening is that our Gateway is blocking emails from the app
that is setup to run on
2006 Jun 20
5
ActionMailer to send to multiple people
I''ve been working with ActionMailer for a few days and finally have a
pretty good grasp of it. In the book I''m reading, it shows how to send
to multiple users or an array of users.
Is there a setting or some configuration I can do to send the email to
each person separately, or would I just need to loop through each user
and send one email at a time?
What is the best way to
2006 Apr 04
2
Default logger inside arbitrary classes
Hi,
What''s the best way to get the default logger (the one used during the tests) from inside a class that doesn''t inherit any rails class?
Thanks
Oscar
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jan 29
0
ActionMailer calling shared methods
I''m trying to use a shared method from an ActionMailer template. The
method was originally in ApplicationHelper, but I''ve also tried it in
the base controller (application.rb), with and without
helper_method. In all cases, I get an error
undefined method `wgg_replace_crlf'' for #<ActionView::Base:0x324b230>
Here is the relevant block of code from the email
2006 Jan 11
1
logger in my classes
Hi,
I wrote a class which is not an AR extension, nor a controller.
I''d like to use logger.* methods there too.
My class is in lib/ dir. I include it in environment.rb with the line
require ''lib/localization''
just after the line
require File.join(File.dirname(__FILE__), ''boot'')
I tried many ways to reuse the logger class. The cleaner way seemed to
2005 Dec 29
2
Access rails logger from plain class
How can I "get" the rails logger from a plain class, that is a class
that does not inherit from a rails class?
I have tried using RAILS_DEFAULT_LOGGER (see below) but it''s nil
class MyClass
logger = RAILS_DEFAULT_LOGGER
def myMethod
logger.debug("stuff...")
end
end
--
Posted via http://www.ruby-forum.com/.
2011 Apr 22
0
ActionMailer : Not able to send out mails
Hello,
I have the following code in my environment/development.rb
config.action_mailer.raise_delivery_errors = true;
config.action_mailer.delivery_method = :smtp;
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:user_name => "my_id-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org",
:password => "secret",