h8pathak h8pathak - 8 months ago 70
PHP Question

SMTP response code 530 returned by Amazon SES

I was trying to send an email through the Amazon SES SMTP interface with php referring this link :
AWS SES SMTP interface with PHP

It is giving an error of

authentication failure
[SMTP: Invalid response code received from server (code: 530, response: Must issue a STARTTLS command first)]

Just to inform, I have moved out the the Amazon SES Sandbox, and I have my sender email verified.

How should I deal with this response code?


This worked for me. Try adding the following to your enviornment variables:

aws_access_key_id as Variable Name and your access id as Variable Value

and, aws_secret_access_key as Variable Name and your access key as Variable Value