Send Test Email fails #2
Added by Rob Hill over 7 years ago
Haven't got an answer in 25 days, so let's try this again…
On clicking "Send a test email" in the Administration Email notifications tab, I get an error:
An error occurred while sending mail (undefined method `error' for true:TrueClass)
Found this in the log:
NoMethodError (undefined method `error' for true:TrueClass): app/models/mailer.rb:497:in `initialize' config/initializers/10-patches.rb:163:in `deliver' app/models/mailer.rb:64:in `block in deliver_issue_add' app/models/issue.rb:1060:in `each_notification' app/models/mailer.rb:63:in `deliver_issue_add' app/models/issue.rb:1847:in `send_notification' app/models/issue.rb:212:in `create_or_update' app/controllers/issues_controller.rb:129:in `create' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
My configuration.yml setup is:
default:
email_delivery:
delivery_method: :sendmail
CentOS 7
Sendmail is installed and tested.
Replies (4)
RE: Send Test Email fails #2 - Added by Deoren Moor over 7 years ago
This works well in our environment:
# default configuration options for all environments
default:
# Outgoing emails configuration
# http://www.redmine.org/projects/redmine/wiki/EmailConfiguration
# See the examples below and the Rails guide for more configuration options:
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
email_delivery:
delivery_method: :async_smtp
async_smtp_settings:
address: 127.0.0.1
port: 25
Each of our Redmine instances runs a local Postfix installation that is configured to send to a central relay for processing and final delivery.
RE: Send Test Email fails #2 - Added by RedChris B. about 7 years ago
My configuration.yml contains:
default:
email_delivery:
delivery_method: :smpt
smtp_settings:
address: myIP_address
port: 25
authentication: :none
openssl_verify_mode: 'none'
If it doesn't help, pls log in to OS system and run "telnet yourIP_address 25" , then run "EHLO yourIP" - it should show greetings. Good luck.
RE: Send Test Email fails #2 - Added by Tatsuya Saito about 7 years ago
RedChris B. wrote:
delivery_method: :smpt
Please check typo and see again config/configuration.yml.example .
RE: Send Test Email fails #2 - Added by Rob Hill almost 7 years ago
Tried both these variations (typo corrected), and still no joy.