similar to: Rails4 and ActionMailer::Base.deliveries

Displaying 20 results from an estimated 1000 matches similar to: "Rails4 and ActionMailer::Base.deliveries"

2007 Feb 15
1
Has anyone run function tests on ActionMailer?
I am running function tests to see if ActionMailer mails out an email. I have two development machines, both with rails 1.1.6. On one machine, the ActionMailer::Base.deliveries array resets itself after each test. On the other machine, the array keeps accumulating the emails from the previous function tests and doesn''t clear out the array after each test. Both machines have identical
2013 Jul 09
3
routes for devise in rails4
hi all, i am using 3 devises for 3 models in rails4. i need routes to my devise models.the devises are client,admin,employee. when i login into client then it will go to clients dashboard, when i login into admin then it will go to admins dashboard, the employee also has the employee dashboard. if i do not enter any login then the common dashboard body message is please signin. please let me
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:
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 :)
2008 Mar 13
2
Verify E-mail Delivery
Are there any services or ways of verifying that an e-mail is reaching its recipient? I am using ActiveMailer and it works well but I may need to start ensuring that e-mails are delivered to the address specified. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2006 Jan 11
1
F-test degree of freedoms in lme4 ?
I have a problem moving from multistratum aov analysis to lmer. My dataset has observations of ampl at 4 levels of gapf and 2 levels of bl on 6 subjects levels VP, with 2 replicates wg each, and is balanced. Here is the summary of this set with aov: >> summary(aov(ampl~gapf*bl+Error(VP/(bl*gapf)),hframe2)) > >Error: VP > Df Sum Sq Mean Sq F value Pr(>F) >Residuals
2009 Oct 14
1
using mapply to avoid loops
Hello, I would like to use mapply to avoid using a loop but for some reason, I can't seem to get it to work. I've included copies of my code below. The first set of code uses a loop (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error. Any guidance would be greatly appreciated. Xj, Yj, and Wj are also lists, and s2,
2015 Nov 18
1
centos 7 and keychain
On 11/17/2015 11:27 AM, PS = Pete Stieber wrote: PS>> Is there a centos recommended repository for PS>> centos 7 where I can obtain the keychain PS>> package? On 11/17/2015 8:19 PM, WJ = Wes James wrote: WJ> I can only see a version for centos 6: WJ> WJ> http://pkgs.repoforge.org/keychain/ WJ> WJ> You?ll need to download the src and see if WJ>you can build it.
2007 May 29
0
specs for ActionMailer
Hi, Email notifications are an important part of my app and I would like to spec them. Here''s what I have going so far. It seems to work. I''d appreciate comments/suggestions. Rails script/generate mailer produces tests for the email contents etc. I''ve started by manually converting the generated unit tests to rspec, and then changing/adding examples as I
2011 Feb 18
0
ActionMailer: hostname was not match with the server certificate
Hi, I am setting up SMTP for my Rails 3 App. This configuration works. ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mydomain.com", :user_name => "<username>", :password =>
2008 May 06
2
Can you use RSpec to test initializers?
Hi there! I''m trying to spec out some code that will set the smtp_settings in a custom ActiveMailer object. Basically I want to check that if my configuration object has the right smtp_server, that the ActiveMailer object gets set up correctly. So, my spec looks like this: it "uses smtp server if config says so" do
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 Jul 24
5
Actionmailer sending many emails in same SMTP connection?
Hi, I need to implement a mailing list system, Actionmailer is great, but i haven''t found out a way to send many (hundreds of) emails without having to reconnect to the SMTP server for each mail when calling Mymailer::deliver_my_mail(recipient) Any tips? (Possibly without calling directly Net::SMTP, so i can take advantage of the rhtml rendering of the body) Thanks, Best regards,
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'',
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 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 =>
2012 Jun 20
1
Tinn-R and R 2.15.0 integration
Hello, This is WJ. I downloaded R(2.15.0) and Tinn-R(2.3.7.1) from http://sourceforge.net/projects/tinn-r/ for my computer (window 7 OS). I want to know how to integrate Tinn-R with R(2.15.0). So far, I was able to find some web-site has step for integration, so I updated the following steps. Open the file 'Rprofile.site' and add the following lines to the end of the file:
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
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 07
0
Edge Rails and ActionMailer problem (Bad file descriptor)
Hi, I have just updated my rails app to use edge rails, however whenever I attempt to send an email using action mailer, I gain the following error, any suggestions t whats going wrong? Bad file descriptor - connect(2) I am using the following settings ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address =>