I'm having an issue where the "E-mail from address" drop-down doesn't show any options, and I get an "Amazon SES can't send email. Please configure a valid From address" error when I try to send a test email from: /admin/settings/amazon_ses
The error has a link to a bad URL: /admin/settings/!config (Note the "!config").
It appears there's an issue in the amazon_ses_send function:
function amazon_ses_send($message) {
$source = variable_get('amazon_ses_from', '');
if (!$source) {
drupal_set_message(t('Amazon SES can\'t send email. Please <a href="!config">configure a valid From address', array('!from' => url('admin/settings/amazon_ses'))), 'error');
return FALSE;
}
Note that "!config" is used in the string, and "!from" is used in the merge array.
As for how to verify an email address with AWS, I'm still unsure. Looking into that today.
Comments
Comment #1
chadhester commentedSo, this documentation was helpful:
http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/index.html?I...
... for anyone looking for it.
I'm still going through the process of setting up the perl scripts.
Comment #2
chadhester commentedI had a little work to do to verify the addresses. First, download the perl scripts. On my first attempted run, I got an error like: "Can't locate XML/LibXML.pm in @INC ..."
I'm on an Ubuntu server, so I had a few things to install:
apt-get install perl libxml-perl libio-socket-ssl-perl libxml-libxml-perl
So, after getting the script to work (and subsequently clicking on the links in the sent verification emails):
perl ses-verify-email-address.pl -k aws-credentials -v user@example.com
I now see the the addresses by running (I did more than one, where their max is 100):
perl ses-verify-email-address.pl -k aws-credentials -l
I also see the addresses in the SES config page "Email from address" drop-down list:
/admin/settings/amazon_ses
In retrospect, I'm surprised that AWS doesn't have a web interface to verify the email addresses, unless I missed something. But just in case someone is just trying to get things to work, try the steps outlined above. :)
Comment #3
rmcom commentedDear Chad, how exactly did you manage to populate the "Email from address" drop-down list?
In http://drupal.org/node/1116264#comment-4307158 you talk about many hoops ... which were they?
Can we work together to update (a) the module and (b) the documentation?
Another solution would be to backport the http://drupal.org/project/awssdk to D6.
PLMK.
Comment #4
rmcom commentedComment #5
rmcom commentedComment #6
tkuldeep17 commentedSorry, Now my code base does not support for drupal 6.