我希望在Ubuntu实例上通过Developer Scripts使用亚马逊的SES(简单电子邮件服务)来访问PHP网站。
到目前为止,我在
中取得了成功./ses-verify-identity.pl -k ./aws-credentials -v email@example.com
ses-send-email.pl
使用相同的凭据发送测试电子邮件但是当我尝试将它们绑定到php.ini
中的sendmail_path配置时sendmail_path = "/opt/third-party/amazon/ses/ses-send-email.pl -k /opt/third-party/amazon/ses/aws-credentials -f email@example.com -r"
我在Apache错误日志中的所有内容都是:
Unknown option: oi
Usage:
ses-send-email.pl [--help] [-e URL] [-k FILE] [--verbose] -s SUBJECT -f
FROM_EMAIL [-c CC_EMAIL[,CC_EMAIL]...] [-b BCC_EMAIL[,BCC_EMAIL]...]
TO_EMAIL[,TO_EMAIL]...
ses-send-email.pl [--help] [-e URL] [-k FILE] [--verbose] -r [-f
FROM_EMAIL] [TO_EMAIL[,TO_EMAIL]...]
有人可以帮帮我吗?
答案 0 :(得分:1)
错误发生是因为PHPMailer calls Postfix sendmail(1)带有-oi
选项:
-oi When reading a message from standard input, don't treat a line with only a . character as the end of input.
由ses-send-email.pl
处理。
一种可能的解决方法是discard that option。