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 }
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 }
本文详细介绍了如何在Ubuntu系统中安装并配置Postfix邮件服务器以及使用Heirloom-Mailx进行邮件发送的基本步骤。包括安装所需软件包、设置邮件服务器、配置SMTP邮件发送等关键操作。
6904

被折叠的 条评论
为什么被折叠?



