LINCnil / pia-back

Programme développé avec le framework RubyOnRails mettant à disposition une API RESTful à destination des outils PIA et PIA-APP. | Program developped with RubyOnRails providing a RESTful API for the PIA and PIA-APP applications.
GNU General Public License v3.0
156 stars 65 forks source link

Email configuration #211

Closed info247 closed 1 year ago

info247 commented 1 year ago

It appears that configuration of SMTP is not possible. This prevents the creation of users for the application.

syl-p commented 1 year ago

Hello @info247. Have you set up smtp informations in you rails credentials file ? My bad, this is not mentioned on README or WIKI. I will make a update for that soon.

Open the credentials file with this command:

EDITOR='nano' rails credentials:edit

Next, set up your smtp informations

email_from: pia@xxxx.com
smtp_address: xxx
smtp_port: xxxx
smtp_domain: xxxx
smtp_user_name: xxxx
smtp_password: xxxx
smtp_authentication: :cram_md5
smtp_enable_starttls_auto: true
info247 commented 1 year ago

Thank you.

syl-p commented 1 year ago

@info247 , could you confirm it's working for you ? I will close this issue

info247 commented 1 year ago

Works now.