Displaying 20 results from an estimated 1000 matches similar to: "Sending mail times out (ActionMailer)"
2006 Aug 16
1
ActionMailer cannot use SMTP for email delivery...
RoR aficionados,
I''ve configured ActionMailer for SMTP delivery of emails, and have
configured "config/environment.rb" accordingly, including the address of
our (external, but fully operational - checked and double-checked :-)
SMTP server.
Sending out emails from my Windows development laptop works without a
hitch, but on a Linux staging server using the exact same source
2006 Jul 27
4
sending emails
Hi, i am running a rails web application on freebsd.
I am having troubles sending emails.
i have this:
ActionMailer::Base.server_settings = {
:address => ''smtp.mydomain.com'',
:domain => ''mydomain.com'',
:port => 25,
:user_name => ''user'',
:password => ''password'',
:authentication=>:login
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 Apr 27
11
Action Mailer Error!!!
What does this mean?
Bad file descriptor - connect(2)
--
Posted via http://www.ruby-forum.com/.
2006 Mar 16
4
Handling/Catching Exceptions
Hello!
I was wondering, sometimes I raise an exception in my Rails apps, e.g.:
raise SecurityError unless @post.user == logged_in_user
Now: is there any way to catch that SecurityError exception somewhere
and render a custom template? E.g., I want to render
''app/views/content/security_error.rhtml''
Does anyone know how to do this?
Thanks a bunch,
Rob
2006 Apr 01
4
Custom Validations
Does anyone how to create a validation that:
validates_presence_of :a OR :b
I.e. :a OR :b must be present.
I thought this would probably be possible with some kind of validation
callback, e.g.:
def check_a_or_b_is_set
return (a or b)
end
Any ideas?
Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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''
2010 Mar 10
6
Email section
Sir , I want to implement email section in ma web application..
so i found the method ''server_setting'' for it...
Following is the method:
config.action_mailer.server_settings = {
:address => "smtp.gmail.com" ,
:port => 25,
:domain => "gmail.com" ,
:authentication => :login,
:user_name => "manish" ,
:password =>
2005 Nov 14
6
ActionMailer - Sent but no mail?
Hi,
I am attempting to use ActionMailer to send out an email (SMTP) and am having an issue. The log files show that the email is sent, but the email is not making it to my inbox.
I have followed the documentation both on the Wiki and in the AWD book. I''m not sure which setting I have incorrect and need some pointers.
:authentication - should this be set to true, or
2009 Apr 29
1
Errno::ECONNREFUSED (Connection refused - connect(2)) Act
Hi All,
I encountered with following error when i try to send e-mail in
production mode.
Errno::ECONNREFUSED (Connection refused - connect(2)):
/usr/lib/ruby/1.8/net/protocol.rb:206:in `initialize''
/usr/lib/ruby/1.8/net/protocol.rb:206:in `new''
/usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open''
/usr/lib/ruby/1.8/timeout.rb:62:in `timeout''
2006 Jul 28
0
error sending emails
i get his error when using ActionMailer:
/usr/local/lib/ruby/1.8/timeout.rb:54:in `new''
/usr/local/lib/ruby/1.8/net/protocol.rb:206:in `old_open''
/usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout''
/usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout''
/usr/local/lib/ruby/1.8/net/protocol.rb:206:in `old_open''
/usr/local/lib/ruby/1.8/net/smtp.rb:393:in
2006 Apr 01
2
Textile headaches
I have the newest version of RedCloth installed (3.0.4). I want the
following output:
<h1>Header</h1>
<p>Some text</p>
This is what I tried but no luck:
irb(main):002:0> require ''rubygems''
=> true
irb(main):004:0> require_gem ''RedCloth''
=> true
irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html
2006 Feb 28
0
Sending email in functional test times out
I''m writing a functional test to see if an email was generated from a
particular action. The action of course sends an email at some
point..but the test says it times out.
config.action_mailer.delivery_method is set to :test in
config/environments/test.rb, not sure why it would be ignoring that.
If I take out my email config from environment.rb, the test runs fine.
Here''s the
2006 Apr 14
2
Markaby trunk broken?
Hello!
Does anyone know how I can check out the Markaby trunk? I''m getting this
error:
<code>
ruby script/plugin install
http://code.whytheluckystiff.net/svn/markaby/trunk
+ ./trunk/svnindex.xsl
/usr/local/lib/ruby/1.8/open-uri.rb:290:in `open_http'': 404 Not Found
(OpenURI::HTTPError)
from /usr/local/lib/ruby/1.8/open-uri.rb:629:in `buffer_open''
2006 Jun 01
0
Socket error in ActionMailer class
I am getting sporadic socket error in actionmailer class. Anyone has
solution for this? On refresh the mail is send properly. It does not
happen everytime.
SocketError in Solution#create_zone
getaddrinfo: no address associated with hostname.
RAILS_ROOT:
C:/DOCUME~1/JONFER~1/LOCALS~1/Temp/tar2rubyscript.d.1424.1/zdc/config/..
Application Trace | Framework Trace | Full Trace
2009 Apr 09
1
Mailing error in Rails 2.3.2
Hi,
My mails were working with the earlier version of rails ie. Rails
2.0.2. But recently when i upgraded my environment to 2.3.2 the mails
stopped working and gave
"Error: End of file reached".
But if i send mails independent of my rails app the mailing code works
fine.
My Environment:
Windows Xp
Ruby 1.8.7
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource
2009 Mar 26
1
Error Send Message
Hello,
I''m trying to make my rails app send mail. so it''s can''t send it''s
error.
I''m using the following configuration in environment.rb:
==
Rails::Initializer.run do |config|
...
config.action_mailer.delivery_method = :smtp
end
ActionMailer::Base.smtp_settings = {
:address => "mail.mydomain",
:port => 25,
:domain =>
2006 Jan 24
4
SMTPSyntaxError with Action Mailer
I''ve been trying to get my action mailer powered form to work all day. I
can get it to work perfectly in development mode.
But when I run it in production mode I get an error, the log spits this
out
Net::SMTPSyntaxError (501 Syntax: HELO hostname
):
/usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
/usr/lib/ruby/1.8/net/smtp.rb:653:in `getok''
2006 Jun 06
14
How can I set the session in a functional test?
Hey :)
I need to simulate a login in my functional test, otherwise I can''t GET nor
POST to the action.
I need to set the session key "logged_in_user_id".
I tried this inside the setup() method:
session[''logged_in_user_id''] = 1
But that throws: TypeError: can''t convert String into Integer
Any ideas?
Thanks,
Rob
-------------- next part
2006 Jul 16
1
Don''t log params
Hello!
I need to supress the logging of params for certain actions, i.e. I don''t
want the params hash to show up in one of my actions.
Does anyone know how to do that?
Thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060716/62b2e2d5/attachment.html