首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ActionMailer Errno::ENOEXEC 8

ActionMailer Errno::ENOEXEC 8
EN

Stack Overflow用户
提问于 2014-02-18 19:48:51
回答 1查看 112关注 0票数 0

我的ActionMailer有问题。我试图在本地将其配置为与Windows 8一起使用。我的问题是,我有以下错误:

代码语言:javascript
复制
Errno::ENOEXEC in Devise::PasswordsController#create
Exec format error - /usr/sbin/sendmail -i -t -f "no-replay@example.com" -- "mail@gmail.com"

在这里,我的ActionMailer配置:

代码语言:javascript
复制
config.action_mailer.default_url_options = { host: 'localhost:3000' }
config.action_mailer.delivery_method = :sendmail
config.action_mailer.sendmail_settings = {
  location: '/usr/sbin/sendmail',
  arguments: '-i -t'
}
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_options = {from: 'no-replay@example.com'}

我不知道在Windows 8上我是否有一个特殊的路径去做,如果是,我需要设置哪些参数?

知道吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-22 10:02:06

sendmail是一个用于发送电子邮件的linux实用程序。它在windows上不可用,因此没有可执行的错误。我在30分钟前才了解到ActionMailer,但据我所知,actionmailer不能单独发送电子邮件,它需要一个实用程序或服务器来完成。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21863882

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档