similar to: Problem with ActionMailer in controller specs - works in model specs

Displaying 20 results from an estimated 7000 matches similar to: "Problem with ActionMailer in controller specs - works in model specs"

2006 Mar 01
0
Possible bug in ActionMailer (with patch)
I wanted to write the following code, with emphasis on adding my own headers to the second part with the :headers parameter. class ArticleMailer < ActionMailer::Base def test_message subject ''This is a test'' recipients ''elan@bluemandrill.com'' from ''Exemplary Products <info@example.com>''
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 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 =>
2009 Jun 15
1
NoMethodError: undefined method `password_reset_instructions' for UserNotifier:Class
Any ideas what would be causing this? NoMethodError: undefined method `password_reset_instructions'' for UserNotifier:Class from /Library/Ruby/Gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/ base.rb:400:in `method_missing'' *** app/models/user_notifier.rb class UserNotifier < ActionMailer::Base def signup_notification(user) setup user subject ''Your new
2006 Jul 05
1
TMail + Receing mail and extract attachments
Hi guys, I have a hard time with action mailer and TMail, I always get the following error... My code: << pop = Net::POP3.new(''pop.mydomain.com'') pop.start(''xxx'', ''xxxxx'') # (1) if pop.mails.empty? puts ''No mail.'' else i = 0 pop.each_mail do |m| # or "pop.mails.each
2009 Feb 26
1
Line breaks removed from ActionMailer template
I''ve been googling and searching this list for about an hour now, and maybe I''m just not thinking of the common nomenclature for what to be looking for, but I can''t find jack. Here''s the deal: I''ve got an application coded correctly, sending the mail out, and the template is structured correctly (method_name.erb is the filename) with LF line breaks
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",
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 =>
2009 Mar 17
1
ActionMailer works for gmail/yahoo, but not for other email addresses...HELP!
I have a rails app that can send emails to gmail, yahoo accounts. But when it comes to more obscure accounts like email-VB3JyQctZj/QT0dZR+AlfA@public.gmane.org or email-yvl6RSr0Ftk@public.gmane.org, the mail never arrives even though the log shows that the email was sent. Any ideas why this may be happening? I have sent an email directly through the same web server through the command line
2006 Jun 08
2
ActionMailer timeout problems
Hi, I am having problems getting ActionMailer to send any mail. I am developing on windows XP with lighttpd and scgi. my settings are as follows(my.domain.net is replaced with a correct mail server): config.action_mailer.server_settings = { :address => "my.domain.net", :port => 25, :domain => "domain.net" } config.action_mailer.raise_delivery_errors = true
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
2009 Feb 10
0
ActionMailer getaddrinfo: Name or service not known..
When I deploy my rails 2.2.2 app to bluehost, I''m having trouble with the ActionMailer SMTP settings. When I attempt to send emails through Rails/SMTP, I get the following error message: getaddrinfo: Name or service not known google says that this means there''s an error negotiating with the mail server. Here are the settings I''m using for SMTP delivery:
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like ActionView cant find my template. same code works as a rake task. here my worker: class StatusMailWorker < BackgrounDRb::Rails repeat 1.minutes # <-- hehe! def do_work(args) [...blah...] NotificationMailer.create_daily_report(users, rep, items) end end end its throwing the following error: No
2007 Nov 17
2
ActionMailer 501: sender address must contain a domain
Hi there guys! Im copying an email example from "Agile web development with rails", but i keep getting a "501: sender address must contain a domain" error. Heres my code in my enviroment.rb. Real values replaced with "something": [code] config.action_mailer.delivery_method = :smtp config.action_mailer.default_charset ="utf-8"
2005 Dec 15
1
Problem with ActionMailer -- which looks really cool!
Whatever I do to try to connect including trying different ISPs, I get the same errors, here they are: Errno::ECONNREFUSED in Events#send_my_email Connection refused - connect(2) Application Trace | Framework Trace | Full Trace /Applications/Locomotive/Bundles/rails-0.14.1-min.bundle/Contents/ Resources/ports/lib/ruby/1.8/net/protocol.rb:83:in `initialize''
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
Hi, I''m having issues with getting a consistent result with the emails I am sending using Actionmailer. Problem: Emails that I send with plain text, rich text, and attachments do not display the same results across GMail, Yahoo, Outlook and Thunderbird. Scenario: I am sending an email with text/plain, text/html, and 2 attachments using the code below, and I''ve specified the
2007 Mar 28
0
mail sending problem with ActionMailer
hi friends, i have written settings in environment.rb as follews and have created necessary models and views for sending mail but mails are not sent. please help me. environment.rb coding ~~~~~~~~~~~~~~~~~~~~~ ActionMailer::Base.delivery_method = :smtp config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true ActionMailer::Base.default_charset =
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 Mar 13
0
mail problem and rails 2.0.2
Hello, I have some code for sending mails. The same worked perfectly on a machine running rails version 1.2.5. Now i have moved the entire application to another system which is running rails 2.0.2 Whenever i try to send a mail i get an error ''execution expired'' Please go through the following code if you can figure out something wrong. Do i need to change something for
2005 Mar 18
1
newbie question on ActionMailer
Hi, I normally try to really figure things out before asking a stupid question but I''m tight on time and the stack trace indicates a pretty low-level problem... something scary for a newb. I''m hoping that someone can just say "you forgot to polish the widget before turning the crank" or some other simple newbie-slap. I''m trying to get actionmailer to send