GithubHelp home page GithubHelp logo

Can't send Mail about decidim-install HOT 11 OPEN

platoniq avatar platoniq commented on June 2, 2024
Can't send Mail

from decidim-install.

Comments (11)

microstudi avatar microstudi commented on June 2, 2024

do you have a log with the error message?
check if your username is the full mail also

from decidim-install.

jack8387 avatar jack8387 commented on June 2, 2024

When i do : grep ERRR log/production.log -A3 -B3
i have nothing
and
I have on log/production.log this message
[2020-10-19T19:55:50.463062 #3229] DEBUG -- : Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2020-10-19 17:55:50.461125', locked_by = 'delayed_job host:decidim-signes pid:3229' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2020-10-19 17:55:50.460385' AND (locked_at IS NULL OR locked_at < '2020-10-19 13:55:50.460425') OR locked_by = 'delayed_job host:decidim-signes pid:3229') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
D, [2020-10-19T19:55:55.471963 #3229] DEBUG -- : Delayed::Backend::ActiveRecord::Job Load (1.1ms) UPDATE "delayed_jobs" SET locked_at = '2020-10-19 17:55:55.470279', locked_by = 'delayed_job host:decidim-signes pid:3229' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2020-10-19 17:55:55.469567' AND (locked_at IS NULL OR locked_at < '2020-10-19 13:55:55.469592') OR locked_by = 'delayed_job host:decidim-signes pid:3229') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

can you try
grep ERROR log/production.log -A3 -B3

from decidim-install.

jack8387 avatar jack8387 commented on June 2, 2024

grep ERROR log/production.log -A3 -B3
send me nothing

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

Try to configure evironments/production.rb as:

  config.action_mailer.smtp_settings = {
    :address        => Rails.application.secrets.smtp_address,
    :port           => Rails.application.secrets.smtp_port,
    :authentication => Rails.application.secrets.smtp_authentication,
    :user_name      => Rails.application.secrets.smtp_username,
    :password       => Rails.application.secrets.smtp_password,
    :domain         => Rails.application.secrets.smtp_domain,
    :enable_starttls_auto => Rails.application.secrets.smtp_starttls_auto,
    :openssl_verify_mode => 'none'
  }

from decidim-install.

jack8387 avatar jack8387 commented on June 2, 2024

My production.rb
config.action_mailer.smtp_settings = {
:address => Rails.application.secrets.smtp_address,
:port => Rails.application.secrets.smtp_port,
:authentication => Rails.application.secrets.smtp_authentication,
:user_name => Rails.application.secrets.smtp_username,
:password => Rails.application.secrets.smtp_password,
:domain => Rails.application.secrets.smtp_domain,
:enable_starttls_auto => Rails.application.secrets.smtp_starttls_auto,
:openssl_verify_mode => 'none',
:ssl => true,
:tls => true
}

from decidim-install.

jack8387 avatar jack8387 commented on June 2, 2024

Hi,
when i send a mail from :
bin/rails console -e production
mailer.mail(from ............).deliver

is ok, i receive the mail.

But when i create a admin, no mail send, and my admin can't use dashboard

Whith decidim, i saw only one error :
[2020-10-24T17:52:26.562499 #77538] ERROR -- : [ActiveJob] [ActionMailer::DeliveryJob] [13a0f5a8-c925-4be4-bfc3-da04f2f533d7] Error performing ActionMailer::DeliveryJob (Job ID: 13a0f5a8-c925-4be4-bfc3-da04f2f533d7) from Async(mailers) in 2346.94ms: Net::SMTPSyntaxError (501 Syntax: HELO hostname.
/home/jacquesa/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:969:in check_response' /home/jacquesa/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:937:in getok

Have any ideas

Thanks

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

is it possible that you need to restart delayedjob after making the updates in your config?

from decidim-install.

jack8387 avatar jack8387 commented on June 2, 2024

I restart the delayedjob and i have the same problem

from decidim-install.

microstudi avatar microstudi commented on June 2, 2024

Sorry, I'm not sure how can I help you, it really seems some misconfiguration (reading the error message)

from decidim-install.

mauriziomarini avatar mauriziomarini commented on June 2, 2024

When you use console
bin/rails console -e production
the system use configuration:
-> config/application.yml
-> config/secrets.yml
-> config/environments/production.rb

when you click
Didn't receive confirmation instructions?

the system use the organization configuration
I just entered 587 and the with mouse wheel down to page to click save
but mouse wheel subtract something to 587 ### damn!!!

take care of it!

from decidim-install.

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.