similar to: Can you use RSpec to test initializers?

Displaying 20 results from an estimated 1400 matches similar to: "Can you use RSpec to test initializers?"

2011 Dec 12
1
Errno::ECONNREFUSED (Connection refused - connect(2)): sending email in production
I don''t know how to get more info about this issue on my remote server ( Linux/Debian6 - Qmail) localhost testing is fine , so my class UserMailer < ActionMailer::Base is rendering correctly the email ( checked in the development log) now, testing the remote SMTP server , via the production console, using : ActionMailer::Base.smtp_settings = {:address  =>
2005 Nov 09
1
Problem with different case logins
Hi, we have a system (Debian sarge) that uses LDAP for user authentication, via pam. We also have virtual users by using a static userdb [1], using the directory structure /var/lib/dovecot/postoffice/%u (i.e., a directory under /var/lib/dovecot/postoffice with the name of the user). The directory /var/lib/dovecot/postoffice belongs to postoffice:mail. IMAP folders, indexes and stuff go here;
2004 Apr 27
1
Password changes to /etc/passwd, but not smbpasswd
Hello, I've Googled and done some mailing list searches, but can't figure out the following . When a user on a Windows 2000 machine attempts to change their password, the change gets applied to /etc/passwd, but not to smbpasswd. The error I receive from Windows is: "The system cannot change your password right now because the domain .. Is not available". (The domain is
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
2012 Feb 14
6
SMTP problem.
Hey all, well I am trying to send emails to newly created users but I have a problem. In the rails log it states that the email has been sent but the email is never actually received so obviously there is a problem. I have noticed one in particular and I don''t understand how to fix it. Once I create the user I get the following error message: Net::SMTPAuthenticationError (535-5.7.1
2009 Apr 13
5
Ruby 1.8.7 + Rails 2.3.2 + TLS = Where's the documentation?
After spending a few hours reading dozens of blogs and tutorials I am still stumped. Numerous sites mention ruby 1.8.7 and rails 2.3 supporting TLS out of the box. However, I can not find any documentation on setting this up to send emails correctly. Furthermore, after attempting to send emails using Gmail and TLS i get the following error: 530 5.7.0 Must issue a STARTTLS command first.
2001 Apr 14
2
Mysterious connection disappearances
I installed a samba server about a week ago for a client and have been having some trouble with it. The two problems that occur are: 1. The "Microsoft mail postoffice" occasionally has files with deny_all locks on them that prevent other users from sending email to the user. My first impression was that this was an Outlook issue, but rebooting the entire (client) computer does not
2011 Jul 09
8
Show your CentOS Support
hi guys, I have about 80 CentOS T-Shirts, ranging from Medium to 3XL in size. These are the grey T-shirts we can see Ralph, Garry and the guys from hostdime modeling for us at: http://www.karan.org/pics/centos/images/002-IMG_2571.JPG If you would like one, please send me an email on kbsingh at the centos.org domain, and let me know your address and what size you would want, I would be happy
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
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
2009 Jan 08
4
SMTP settings for action mailer
with rails 2.2.2 action mailer requires a valid ssl certificate i have a question about routing my smtp settings for my postfix are now ActionMailer::Base.smtp_settings = { :address => "smtp.mydomain.com", :port => 25, :domain => "mydomain.com", :authentication => :plain, :user_name => "mydomain_mailer-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org",
2005 Sep 14
9
Sending Emails via Cron
I''m developing an application using RoR that will generate enough email notifications that I don''t want them in the actual web application. So, I''m thinking about having an outgoing queue that a cron job would pick up and deliver. My question is if this is possible with a ruby script that uses ActiveRecord and ActiveMailer?
2006 Aug 10
1
Web service SOAP URLs started failing with 1.1.4 or using 1.1.2 security patch
Railers, I''m trying to figure out why invocations to my Web service URLs work with Rails 1.1.2 but fail both with Rails 1.1.4 (and 1.1.5) and when I apply the new 1.1.2 security patch to Rails 1.1.2. It looks like they are failing with SOAP clients but succeeding with XML-RPC clients. The URL that used to work is of the form http://localhost:3000/my_controller/ServiceName/api. When I
2006 Jan 17
2
actionmailer
I''m getting an error when I''m tyring to use the actionmailer. undefined method `deliver_signup_thanks'' for Notifier:Class This is what I have in the controller. def emailTest Notifier::deliver_signup_thanks() render_text "email test" end This is what I have in notifier model (notifier.rb) class Notifier < ActiveRecord::Base def
2008 Jul 30
1
postfix and rails (ubuntu)
I''ve got postfix up and running on my rails system (unsure if it''s correct), but Rails doesn''t seem to talk to it at all. I''ve setup: ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.smtp_settings = { :address => ''localhost'', :domain => ''www.mywebsite.com'', :port => 25 } But it
2009 May 17
1
action mailer on my local computer
hi guys i am newbie in ror. i wanna test my simple ror application on windows xp. i use Webrick as my web server. i don''t know how to configure my action mailer for sending email to another addresses? config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => ''localhost'', :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,
2007 Jun 11
1
ActionMailer + ISP SMTP
Hi I''m new here, and pretty much new on the rails. I''m trying to set up my application to send emails (needed for salted hash login) but i keep getting errors. i''m sure port 25 is not blocked since i''m able to send mails through PHP scripts. my smtp settings in config/enviroment.rb are: # Include your app''s configuration here:
2010 Nov 26
1
Relay Access Denied
Hi, I have several rails applications on a shared hosting. To avoid the server''s restriction of sending mails, I use an external SMTP. It works most of times but for some sender emails it gives an error. Net::SMTPFatalError (554 5.7.1 <sam.s.kong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: Relay access denied The error happens if sender''s domain is gmail.com, yahoo.com or
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