• Resolved Mayhem30

    (@mayhem30)


    I’m not able to send emails with this plugin using Amazon SES. It keeps returning this error:

    CLIENT -> SERVER: EHLO example.com
    CLIENT -> SERVER: STARTTLS
    CLIENT -> SERVER: EHLO example.com
    CLIENT -> SERVER: AUTH LOGIN
    CLIENT -> SERVER: [credentials hidden]CLIENT -> SERVER: [credentials hidden]SMTP ERROR: Password command failed: 535 Authentication Credentials Invalid
    SMTP Error: Could not authenticate.CLIENT -> SERVER: QUIT
    SMTP Error: Could not authenticate.

    However, using phpmailer in my own PHP script, it works just fine.

    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->SMTPAuth = true;
    $mail->Host = "email-smtp.us-west-2.amazonaws.com";
    $mail->Username = "HJSKDIOUHDSJLD";
    $mail->Password = "KHSDUWHSJHSJKLSHDWUHDSJHDS";
    $mail->SMTPSecure = 'tls';
    $mail->Port = 587;

    Any ideas what the issue could be? I’ve triple checked that I have the correct login / password.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, please check the following troubleshooting steps.

    https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Let me know if they help you.

    Thank you.

    waltmagic

    (@waltmagic)

    I just wanted to share a recent experience I had which I just resolved. I was getting the error 535 just like this person was. I deleted my existing Key/Secret and created a new one to ensure that I had the correct credentials. I used ss/netstat/nmap/iptables to check what ports were open or if anything was blocked, everything checked out. I used telnet to connect to the amazon smtp host, good. I sent a test email from my SES Account Dashboard, email was received. However, when I tried sending a test email from my smtp mail plugin (wp mail smtp) I kept receiving the error 535 credentials invalid. It was driving me insane! What I had to do was delete the “user” from my Identity and Access Management (IAM) and create a new user. I have no idea why I had to do this. I know I sold a website a couple months ago and my SES account had been inactive since that time but this should not have affected that user. I think something within Amazon changed in the last couple months which affected the IAM users and permissions. Hope this helps someone. I am going to post this in multiple places on the internet so search engines can pick it up.

    Thread Starter Mayhem30

    (@mayhem30)

    In order for it to work properly, you need to create your credentials in :

    Amazon SES > SMTP Settings > Create SMTP Credentials button

    If your credentials is created anywhere else it will not work – regardless if the user has the correct permissions or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Amazon SES issue’ is closed to new replies.