I want to use Amazon’s SES (Simple Email Service) through the Developer Scripts for a PHP site, on an Ubuntu instance.
So far I’m successful in
- verifying an email
./ses-verify-identity.pl -k ./aws-credentials -v email@example.com - use
ses-send-email.plwith the same credentials to send a test email
But when I try to bind them into the sendmail_path config in php.ini
sendmail_path = "/opt/third-party/amazon/ses/ses-send-email.pl -k /opt/third-party/amazon/ses/aws-credentials -f email@example.com -r"
All I get in the Apache error log is this:
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]...]
Can anybody please help me out?
The error happens because PHPMailer calls the Postfix sendmail(1) with the option
-oi:which is not handled by
ses-send-email.pl.One possible fix is to just discard that option.