Defect #34038
closedRedmine won't send emails in latest version
0%
Description
When I set my configuration.yml file to the following:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
tls: true
address: smtp.gmail.com
port: 587
domain: myfakewebsite.com # 'your.domain.com' for GoogleApps
authentication: :plain
user_name: myemail@gmail.com
password: mypassword
It does not send any errors and in fact, the delivery job starts but no emails are sent:
Processing by IssuesController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"wptmfLyG+egOAgXjAsL24PEMQbmaxE0fjZtccvTAvxsfL27nC+kLytii01wvdrzb6HIhHrpFLr5e6mYxRKBi5g==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "tracker_id"=>"2", "subject"=>"test", "description"=>"test123", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "category_id"=>"", "fixed_version_id"=>"", "parent_issue_id"=>"", "start_date"=>"", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "custom_field_values"=>{"1"=>""}, "watcher_user_ids"=>[""]}, "was_default_status"=>"1", "commit"=>"Create", "project_id"=>"hvs_game"}
Current user: Daniel (id=5)
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID: a984c191-91dd-456f-9538-f001076692cd) to Async(mailers) with arguments: "Mailer", "issue_add", "deliver_now", #<GlobalID:0x000000000f43bd68 昇吾 津江=#<URI::GID gid://redmine-app/User/5>>, #<GlobalID:0x000000000f43b5e8 昇吾 津江=#<URI::GID gid://redmine-app/Issue/67>>
Redirected to http://192.168.1.54:3000/issues/67
Completed 302 Found in 53ms (ActiveRecord: 18.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Performing ActionMailer::DeliveryJob (Job ID: a984c191-91dd-456f-9538-f001076692cd) from Async(mailers) with arguments: "Mailer", "issue_add", "deliver_now", #<GlobalID:0x000000000f47f978 昇吾 津江=#<URI::GID gid://redmine-app/User/5>>, #<GlobalID:0x000000000f47f1d0 昇吾 津江=#<URI::GID gid://redmine-app/Issue/67>>
Started GET "/issues/67" for 192.168.1.51 at 2020-09-27 11:41:23 -0400
Processing by IssuesController#show as HTML
Parameters: {"id"=>"67"}
Current user: Daniel (id=5)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendering mailer/issue_add.text.erb within layouts/mailer
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendered mailer/_issue.text.erb (8.6ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendered mailer/issue_add.text.erb within layouts/mailer (11.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendering mailer/issue_add.html.erb within layouts/mailer
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendered mailer/_issue.html.erb (2.4ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Rendered mailer/issue_add.html.erb within layouts/mailer (5.9ms)
[ActiveJob] [ActionMailer::DeliveryJob] [a984c191-91dd-456f-9538-f001076692cd] Performed ActionMailer::DeliveryJob (Job ID: a984c191-91dd-456f-9538-f001076692cd) from Async(mailers) in 55.88ms