Coder Social home page Coder Social logo

Support for Gmail about wg-portal HOT 4 CLOSED

h44z avatar h44z commented on September 15, 2024
Support for Gmail

from wg-portal.

Comments (4)

h44z avatar h44z commented on September 15, 2024

To set up the email account that sends out the configuration emails you can use the following environment variables (found in email.go):

  • EMAIL_HOST: smtp.gmail.com
  • EMAIL_PORT: 587
  • EMAIL_TLS: true
  • EMAIL_USERNAME: [email protected]
  • EMAIL_PASSWORD: your-gmail-pw or gmail-app-password

You can read the gmail documentation for how to setup gmail smtp server: https://support.google.com/a/answer/176600?hl=en#zippy=%2Cuse-the-gmail-smtp-server

from wg-portal.

valireality avatar valireality commented on September 15, 2024

Hi, thank you for your replay.

I configured wg-portal.env like this:

EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_TLS=true
EMAIL_CERT_VALIDATION=no
[email protected]
EMAIL_PASSWORD=xxxxx

and i got this error when i try to send email:

500

Template error

template: email.html:103:80: executing "email.html" at <.Client.LdapUser>: can't evaluate field LdapUser in type server.Peer

from wg-portal.

h44z avatar h44z commented on September 15, 2024

I see, your configurations looks correct. There seems to be a bug in the mail template. I will fix this in the next version.

from wg-portal.

valireality avatar valireality commented on September 15, 2024

working great!
thanks :)

from wg-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.