sap-labs-france / ev-server

The Open e-Mobility Charging Station management backend server (check also ev-dashboard and ev-mobile)
https://open-e-mobility.fr/
Apache License 2.0
141 stars 132 forks source link

SMTP→The message doesn't arrive to the e-mail #4154

Open helendev2001 opened 1 year ago

helendev2001 commented 1 year ago

Hi The question is why the email doesn't arrive after registering a user.

My SMTP configuration done in the ev-server/src/assets/config.json is as follows Config

When logging in as admin I can only see the EmailNotification log. email

Could you help me with some information of where is the error, if in the configuration or another file inside the back-end. Thank you

AndyChriss123 commented 1 year ago

Hello. I had to set up two factor authentication on my account and generate an app password for my "user": email account. After that it still did not work unless I have set up CentralServerFrontEnd in the server config file as local machine IP address instead of localhost or some domain. Hope it helps! Edit: Also note that under development start modes ( npm run start:dev / start:dev:debug / start) the central server will only send emails if you enable debugging under the respective email section in the config.