getgrav / grav-plugin-email

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

GMail authenication #118

Closed KDeverell closed 1 year ago

KDeverell commented 5 years ago

I have tried to configure the plugin to use Gmail and I am getting this response:

Expected response code 235 but got code "534"

I have tried the configuring the email plugin with both SSL and TLS, as per docs and other tickets on this forum. I have also enabled unsecure email option in my account. The strange is if I use an email address that is hosted through gmail using a custom domain it works, but if I use my email account xxxx@gmail.com it doesn't work. I have test a couple of different xxxx@gmail.com and they all through the same error. My settings are:

mailer:
  engine: smtp
  smtp:
    server: smtp.gmail.com
    port: 465
    encryption: ssl
    user: 'YOUR_GOOGLE_EMAIL_ADDRESS'
    password: 'YOUR_GOOGLE_PASSWORD'

Any help most welcome! Thanks K.

Heraes-git commented 5 years ago

@KDeverell Hi, Gmail have authorizing steps before allowing things through an other service's request (Grav) . I personally discovered that using the email input as a from: field, was allowing users to type any mailbox, and if the e-mail was a gmail one, it was bugging. So I modified my form in order to set the form: to be pointing to the mailbox of the customer using the site, as indicated in the plugin's options : from: "{{ config.plugins.email.from }}"