您的位置:首页 > 编程语言 > Python开发

Mac系统中python idle导入第三方模块成功,ecplise导入python第三方模块失败解决方法

2015-01-26 23:15 1136 查看
Linux下使用sendmail的设置

ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.sendmail_settings = {
:location       => '/usr/sbin/sendmail',
:arguments      => '-i -t -f no-reply@anyhost.com'
}

一定要注意ActionMailer::Base.delivery_method = :sendmail,默认好像是:smtp如果不设置使用sendmail会发不出信的。

使用smtp的设置

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "mail.anyhost.com",
:port => 25,
:domain => "anyhost.com",
:authentication => :login,
:user_name => "youraccount",
:password => "yourpassword",
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐