# Mail sending problem with ActionMailer

**URL:** <https://www.ruby-forum.com/t/mail-sending-problem-with-actionmailer/90375>\
**Category:** Rails\
**Created:** [March 28, 2007, 8:46am UTC](https://www.ruby-forum.com/t/mail-sending-problem-with-actionmailer/90375 "2007-03-28T08:46:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b487fb/32.png) [@abhi](https://www.ruby-forum.com/u/abhi)\
**Post date:** [March 28, 2007, 8:46am UTC](https://www.ruby-forum.com/t/mail-sending-problem-with-actionmailer/90375/1 "2007-03-28T08:46:06Z")

</div>

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

```auto

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]
```
