getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators #149

Closed AndrewNB closed 2 years ago

AndrewNB commented 3 years ago

Hi,

I have the following error when trying to send an email. Running locally I have no issues but on an Azure webapp I get the following error:

0 - Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got an empty response. Authenticator PLAIN returned Expected response code 250 but got an empty response.

My config is in email.yaml:

mailer:
  engine: smtp
  smtp:
    server: smtp.sendgrid.net
    port: 587
    encryption: tls
    user: apikey
    password: **************************************
  sendmail:
    bin: "/usr/sbin/sendmail -bs"

Local Env: Windows PHP V7.4.16 Azure Env: Windows PHP V7.4.11

Any idea what the issue is? I would expect it to authenticate in the same way and it's not.

ricardo118 commented 3 years ago

im getting the same issue too

mohit1954 commented 3 years ago

meko b btana agar pta chle toh

ufukayyildiz commented 2 years ago

hi,

i had same problem with AWS ses. for aws, solution is that: create new credentials just for smtp user, not full ses access or etc.

rhukster commented 2 years ago

Cleaning up old emails. please read: https://getgrav.org/blog/new-email-plugin