Forum: Ruby on Rails problem in sending email

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0bba18e659e429e4c3a9c38c5668cdce?d=identicon&s=25 mujahid raafay (Guest)
on 2009-01-26 13:52
(Received via mailing list)
Dear friends,
     I am new to rails.I am develoing a test application in which i need
send email . I have rails 2.2.2
     I have made following changes in application.rb

   ActionMailer::Base.delivery_method = :smtp

   ActionMailer::Base.smtp_settings = {
   :address => '',
   :port => 587,
   :domain => '',
   :authentication => :plain,
   :user_name => '',
   :password => 'lionesss',
   :tls =>  true

  When i send email I get following message in prompt:

Processing AddressBooksController#addFriends (for at
14:23:41) [GET]
  Parameters: {"final"=>"1", "email0"=>""}
Redirected to /address_books/sendmail?nameOfSender=muhammad
Completed in 3ms (DB: 0) | 302 Found [

Processing AddressBooksController#sendmail (for at 2009-01-26
14:23:42) [GET]
  Parameters: {"nameOfSender"=>"muhammad"}
Sent mail to

Date: Mon, 26 Jan 2009 14:23:42 +0500
Subject: Invitation from BizCar
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8

        <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
        <title>Untitled Document</title>
Completed in 11ms (View: 0, DB: 0) | 200 OK []


The message shows as if the email has been sent but I am receiving no
If somebody can  help me out ......Thankssssss
Af2ce6689213fdb78913a9662b18da6b?d=identicon&s=25 Rick (Guest)
on 2009-01-27 10:18
(Received via mailing list)
Hello Muhammad,

Your question showed up twice, so answered again.

I assume you've already installed action_mailer_optional_tls so I
won't say to do that.

I use:

ActionMailer::Base.smtp_settings = {
  :tls => true,
  :address => "",
  :port => 25,
  :domain => "",
  :authentication => :login,
  :user_name => "",
  :password => "........"


But I also needed to make a change to smtp_tls.rb so it would work
with Ruby 1.8.7.  Specifically:


check_auth_args user, secret, authtype if user or secret

    check_auth_args user, secret if user or secret

As for some reason check_auth_args went from 3 args to 2.

This topic is locked and can not be replied to.