Displaying 20 results from an estimated 600 matches similar to: "ActionMailer Fails To Send Emails Post Authentication"
2008 Apr 11
7
Net::SMTPAuthenticationError
Hey guys,
I want to send an email via ROR and I have put this code at the very end
in the config/environment.rb file-
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.logger = nil
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
  :address  => "[my smtp server]",
  :port  => 25,
  :domain
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.
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 Jul 03
3
ActionMailer -- anybody ever see this?
I''ve got a mailer that works -- about every other time. Authentication 
fails the other half of the time. There doesn''t seem to be any 
particular pattern to it -- work once, fail once, work three times, fail 
twice, ....
For example, here''s one attempt from my development.log:
Sent mail:
 Date: Sun, 2 Jul 2006 18:50:57 -0500
From: someone <someone@something.org>
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             =>
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
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:
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
2011 Mar 04
1
How to modify the template path for ActionMailer used in a Ruby script ?
I am testing a ruby 1.9.2 script (it''ll be run in a cron task
later...)  in which I am trying to use ActionMailer
All my files are in a single folder ''joinus_email
- joinus_email
    joinus_email.rb
    notifier.rb
    - notifications
        joinus_email.html.erb
        joinus_email.text.erb
running the script joinus_email.rb, (in which I defined the
2008 May 08
5
Simple Generated Component Suddenly Gives Errors
What am I doing wrong here when I wrote a very simple component so :
C:\ruby\letter4sure>ruby script\generate scaffold pso_printers
printing_setting_id:integer pso_id:integer
      exists  app/models/
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/pso_printers
...
Then I did a rake db:migrate
And then I simply went to take a look at the url for the above :
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        =>
2008 Sep 22
0
ActionMailer with Google Apps
I am trying to send email from a Google Apps account. Without specifying
an settings whatsoever, when attempting to send email, my postfix server
will simply relay the request to google, which I assume is much slower
than connecting to Google''s smtp server directly. I eventually decided
to try this "direct connect" approach because I was getting an error
when trying to send
2007 Nov 12
1
help debugging ActionMailer with restful_authentication?
In a nutshell, I''m using restful_authentication that emails the user
when they sign up for an account
The development.log file shows the body of the e-mail message being
prepped to send out, but doesn''t show confirmation that it made it.
When I use gmail''s SMTP server, a Rails exception is thrown because
gmail expects an encrypted connection.  A different type of Rails
2008 Sep 04
1
actionmailer sends from commandline but not from web
Hello all,
I''m having trouble with this simple email class I made for postbacks.
When I run this from the command line an email is sent, however when I
access this .rb file through a browser nothing happens.
-------------------------
#!/usr/bin/ruby
require "rubygems"
require "action_mailer"
ActionMailer::Base.delivery_method = :smtp
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 =
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:
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
   
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  =>
2009 May 02
0
Net::SMTPAuthenticationError with use of gmail smtp
Before today my mail service is working well. But i got suddenly Error
for Net::SMTPAuthenticationError
And get error page with following message
421 4.7.0 Temporary System Problem.  Try again later (HS).
m29sm19625431poh.25
can any one help me in this? Why this occur? I haven''t do any changes in
my settings. Its same as before my mail service is working.. Is there
any service issue?