`

ROR31 体验-3 mail server

 
阅读更多
install mail server

sudo apt-get install postfix

sudo apt-get install heirloom-mailx

http://wiki.ubuntu.org.cn/PostfixBasicSetupHowto

* Action Mailer Configuration

As Action Mailer now uses the Mail gem, this becomes as simple as adding to your config/environments/env.rb file:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'baci.lindsaar.net',
  :user_name            => '<username>',
  :password             => '<password>',
  :authentication       => 'plain',
  :enable_starttls_auto => true  }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics