h8pathak
h8pathak

Reputation: 1382

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?

Upvotes: 1

Views: 1931

Answers (3)

Manish Keswani
Manish Keswani

Reputation: 11

I got the same error. The problem was resolved by using the latest javax.mail jar file - https://github.com/javaee/javamail/releases/tag/JAVAMAIL-1_6_2

Upvotes: 1

TheHardRock
TheHardRock

Reputation: 691

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

Upvotes: 1

Henry
Henry

Reputation: 3013

Are you trying to do this from your home PC? Most internet providers block port 587, 25, etc. I wonder if that's what happening.

Upvotes: 0

Related Questions