Forum: Ruby on Rails mail sending problem with ActionMailer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
abhi (Guest)
on 2007-03-28 10:46
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 = "UTF-8"

  ActionMailer::Base.smtp_settings = { :address => "localhost",
                                       :port => 25,
                                       :authentication => :plain,
                                       :user_name=>"uname",
                                       :password=>"pass"
                                     }

i have comented th line

# config.frameworks -= [ :action_web_service, :action_mailer ]
This topic is locked and can not be replied to.