Code Monkey home page Code Monkey logo

Comments (5)

brunto avatar brunto commented on July 16, 2024

Hello @Foxi352,
We just merged the rails7 branch to the main branch.
Same for "pia" https://github.com/LINCnil/pia with some fixes.

Regarding the SMTP configuration you need to update the information inside: https://github.com/LINCnil/pia-back/blob/master/config/initializers/mailer.rb

The wiki is not updated for now, but you need to set your SMTP credentials in this file.
We can help you if needed.

from pia-back.

Foxi352 avatar Foxi352 commented on July 16, 2024

Thanks for your reply. I am new to ruby so updating pia-back, rails and gem's was not that easy :-)
Pia was easier as i have Angular experience.

I now have latest versions of pia and pia-back running.

Re mail: If i edit mailer.rb directly, will that not make problems on future git pull ?
Can i use EDITOR='nano' bin/rails credentials:edit and put something in there like:

smtp_address: srvexchange.xxx.xxx
smtp_post: 587
smtp_authentication: false
smtp_enable_starttls_auto: true

Or where does it get it's Rails.application.credentials.smtp_address from ?

from pia-back.

brunto avatar brunto commented on July 16, 2024

Yes it's better to update the credentials with EDITOR='nano' bin/rails credentials:edit and set the value inside.

from pia-back.

Foxi352 avatar Foxi352 commented on July 16, 2024

I still get the error production.log:

F, [2023-02-01T14:23:20.526919 #229398] FATAL -- : [b7a116d1-c259-4c59-88bb-315d554eab29]
[b7a116d1-c259-4c59-88bb-315d554eab29] ArgumentError (SMTP From address may not be blank: nil):
[b7a116d1-c259-4c59-88bb-315d554eab29]
[b7a116d1-c259-4c59-88bb-315d554eab29] app/controllers/users_controller.rb:70:in `password_forgotten'

In .env:

In EDITOR='nano' bin/rails credentials:edit:

smtp_address: srvexchange.xxx.xxx
smtp_post: 587
smtp_authentication: false
smtp_enable_starttls_auto: true

Did i miss something ?

from pia-back.

brunto avatar brunto commented on July 16, 2024

Hi @Foxi352 sorry for the late answer.
You need to add email_from into the credentials.
You have more information in the README

from pia-back.

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.