注意修改address、port、domain、user_name、password这几项内容即可
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.sina.com",
:port => "25",
:domain => "smtp.sina.com",
:authentication => :plain,
:user_name => "[email protected]",
:password => "test",
:enable_starttls_auto => true
}