You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if this is not the right place to try to resolve my issue. I'm probably making a stupid mistake. In development everything works. But in production I get this error when I try to send a confirmation email to the new system user. I successfully create the new user but he doesn't receive the email. I don't need to use "email.deliver_later" because I am the system administrator and the unique user of this system. The new accounts will use another app sharing the same database. I am trying to use Zoho.
[2023-03-13T21:06:25.180599 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Rendered rodauth_mailer/verify_account.text.erb within layouts/mailer (Duration: 0.3ms | Allocations: 126)
I, [2023-03-13T21:06:25.180941 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Rendered layout layouts/mailer.text.erb (Duration: 0.7ms | Allocations: 266)
I, [2023-03-13T21:06:25.341914 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Delivered mail 640fba812c7f5_43606c88c80577@ubuntu-s-1vcpu-2gb-intel-nyc1-01.mail (160.0ms)
I, [2023-03-13T21:06:25.342531 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Completed 500 Internal Server Error in 489ms (ActiveRecord: 36.4ms | Allocations: 14287)
F, [2023-03-13T21:06:25.344085 #275974] FATAL -- : [d12a87e2-23d7-4018-ac34-19798a131381]
[d12a87e2-23d7-4018-ac34-19798a131381] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 peeraddr=136.143.190.56:587 state=error: wrong version number):
[d12a87e2-23d7-4018-ac34-19798a131381]
[d12a87e2-23d7-4018-ac34-19798a131381] app/misc/rodauth_main.rb:65:in block (3 levels) in <class:RodauthMain>' [d12a87e2-23d7-4018-ac34-19798a131381] app/controllers/tutorauxes_controller.rb:114:in create'
In app/misc/rodauth_main.rb line 65 I have the following code:
send_email do |email|
db.after_commit { email.deliver_now }
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I apologize if this is not the right place to try to resolve my issue. I'm probably making a stupid mistake. In development everything works. But in production I get this error when I try to send a confirmation email to the new system user. I successfully create the new user but he doesn't receive the email. I don't need to use "email.deliver_later" because I am the system administrator and the unique user of this system. The new accounts will use another app sharing the same database. I am trying to use Zoho.
[2023-03-13T21:06:25.180599 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Rendered rodauth_mailer/verify_account.text.erb within layouts/mailer (Duration: 0.3ms | Allocations: 126)
I, [2023-03-13T21:06:25.180941 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Rendered layout layouts/mailer.text.erb (Duration: 0.7ms | Allocations: 266)
I, [2023-03-13T21:06:25.341914 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Delivered mail 640fba812c7f5_43606c88c80577@ubuntu-s-1vcpu-2gb-intel-nyc1-01.mail (160.0ms)
I, [2023-03-13T21:06:25.342531 #275974] INFO -- : [d12a87e2-23d7-4018-ac34-19798a131381] Completed 500 Internal Server Error in 489ms (ActiveRecord: 36.4ms | Allocations: 14287)
F, [2023-03-13T21:06:25.344085 #275974] FATAL -- : [d12a87e2-23d7-4018-ac34-19798a131381]
[d12a87e2-23d7-4018-ac34-19798a131381] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 peeraddr=136.143.190.56:587 state=error: wrong version number):
[d12a87e2-23d7-4018-ac34-19798a131381]
[d12a87e2-23d7-4018-ac34-19798a131381] app/misc/rodauth_main.rb:65:in
block (3 levels) in <class:RodauthMain>' [d12a87e2-23d7-4018-ac34-19798a131381] app/controllers/tutorauxes_controller.rb:114:in
create'In app/misc/rodauth_main.rb line 65 I have the following code:
send_email do |email|
db.after_commit { email.deliver_now }
end
Here is my smtp settings:
config.action_mailer.smtp_settings = {
:address => "smtp.zoho.com",
:port => 587,
:domain => "ipecebr.org",
:user_name => '[email protected]',
:password => 'xxxxxxxxxxxxx',
:authentication => :login,
:ssl => true,
:tls => true,
:enable_starttls_auto => true
}
Please, could someone help me?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions