Displaying 20 results from an estimated 30000 matches similar to: "ActionMailer and logging"
2006 Jun 13
0
ActionMailer: bug or not a bug?
I ran across this when trying to use ActionMailer separately from rails:
[09:38 AM] [bmoyles@bmoyles-mac]
~/tmp $ cat foo.rb
#!/usr/bin/env ruby
require ''logger''
logger = Logger.new(STDOUT)
logger.info ''Testing-1-2-3''
[09:38 AM] [bmoyles@bmoyles-mac]
~/tmp $ ./foo.rb
I, [2006-06-13T09:38:26.171334 #11749] INFO -- : Testing-1-2-3
[09:38 AM]
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
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
Hi,
it probably is a noob question but I''m confused by this error message:
active_support/dependencies.rb:478:in `const_missing'': uninitialized
constant Invoice::ApplicationController
Situation:
I have an InvoicesController with a create method that in turn calls
upon a MiddleMan.worker(:billing_worker), which in turn finds an Invoice
and calls upon @invoice.print_invoice
2008 May 03
2
backgroundrb / actionmailer / sendmail
Hello,
I''m trying to send emails from a backgroundrb worker and the email doesn''t
send. I get no log messages in the sendmail log or the system log, nothing
in the backgroundrb logs at all, nothing in the production log.
Below is my code for each component
worker:
class QuizReviewerWorker < BackgrounDRb::MetaWorker
set_worker_name :quiz_review_sender
def create(args =
2005 Mar 29
0
ActionMailer tmail/quoting.rb problem
Hi,
Why did you allow this incompatibility? ;)
* fixtures/notifications/signup:
_foo
@expected.body = read_fixture(''signup'')
p @expected.body
#=> " foo\n"
# because text.gsub(/_/," ")
If you enhance TMail::Mail#body like this,
I want you to convert mail.body code in render_body.
My mailer code now:
# topic is a ActiveRecord instance. topic
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/.
2006 Jan 12
3
How to Selectively Quite SQL Logging
I know about logger.silence but here is the issue: I''m comfortable with
the way the user engine is working, but it generates quite a bit of SQL
noise in the logs. I''d like, for that engine, to suppress the SQL
logging.
Code in it has return statements in conditionals, e.g.,
if !user?
RAILS_DEFAULT_LOGGER.debug "checking guest authorisation for
2006 Aug 07
9
problems with ActionMailer
Hi all,
I''m trying to create a worker to send a mail to all the users in my
db. Right now I''m doing the tests, this is the code in my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
2008 Nov 12
1
PowerBuilder 10-based app: Printing issue
Hi to all,
Last year I ask for help here, for a PB-based application issue, and the good folks here pointed me to a solution :-) Now I got another problem.
Part of the app consists in print invoices. That function works in Windows, but in Wine I got an screwed printout.
Just for experimental purposes, I installed the "CUPS-PDF" package, to get the PDF view of the invoice, and the PDF
2007 Nov 16
1
Temporaly silencing the rails log.
Hi! I want to do what subject say. Is there any elegant way to do this:
???
# Silence the log inside the block attached to the method call.
def silence_logger
orig= nil
ObjectSpace.each_object(::Logger) do |logger|
logger.info "-" * 80
logger.info "Quieting the log..."
orig= logger.level
logger.level= ::Logger::FATAL
end
yield
2012 Apr 30
1
Log messages
Hello.
I have been on leave for several weeks and have managed to lose all emails
received since December due to a server crash.
I asked about log synch error back in March and have (repeatedly) deleted all
.imap files but the errors continue.
# 2.1.1: /usr/etc/dovecot/dovecot.conf
# OS: Linux 2.6.33.5-desktop-2mnb i686 Mandriva Linux 2010.2
mail_access_groups = mail
mail_location =
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 Apr 26
0
Avoiding deadlock... Problem
Hi
I have 3FXO trunks called ZAP-25,ZAP-26 and ZAP-28 and T1 Channnel bank I
get this deadlock problem when 2 incoming call from FXO(Here ZAP-28 and then
ZAP-26) wants to dial same channel (Here ZAP-1).
In this senario ZAP-1 first answer ZAP-28 and thne ZAP-26 wants to call
ZAP-1 but it time out and goto voicemail after that ZAP-1 try to reach
ZAP-26 call by puting ZAP-28 on HOLD During
2005 Dec 09
0
Default Logger -> Database log
Hi listers,
I''m trying to save my log entries in the database using the following technique :
http://wiki.rubyonrails.com/rails/pages/DatabaseLoggerWish
I''ve added the following code to the Environment.rb :
----------------------------------------------------------------------------
begin
RAILS_DEFAULT_LOGGER = DBErrorLogger.new()
rescue StandardError
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
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:
2005 Oct 13
0
Does ActionMailer support multiple configurations? Can an ActionMailer child class define a custom configuration?
Hello,
I read that the ActionMailer configuration should be set in the
environment.rb file (See http://am.rubyonrails.com/ and page 399 in the PP
Rails Book).
In my case, I have a customer rep admin application that administers
multiple websites. One of the features involves emailing the login info for
new subscribers that that sign up for the websites by mail.
I would like to use the