我的ActionMailer有问题。我试图在本地将其配置为与Windows 8一起使用。我的问题是,我有以下错误:
Errno::ENOEXEC in Devise::PasswordsController#create
Exec format error - /usr/sbin/sendmail -i -t -f "no-replay@example.com" -- "mail@gmail.com"在这里,我的ActionMailer配置:
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上我是否有一个特殊的路径去做,如果是,我需要设置哪些参数?
知道吗?
发布于 2014-10-22 10:02:06
sendmail是一个用于发送电子邮件的linux实用程序。它在windows上不可用,因此没有可执行的错误。我在30分钟前才了解到ActionMailer,但据我所知,actionmailer不能单独发送电子邮件,它需要一个实用程序或服务器来完成。
https://stackoverflow.com/questions/21863882
复制相似问题