Project

General

Profile

Actions

Patch #17239

closed

ActionMailer cannot send email via SSL SMTP

Added by hongbo yang over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I'm setting up a Redmine with Bitnami Stack. All works but sending email not.

Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p545 (2014-02-24) [x86_64-linux]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.0
Filesystem
Redmine plugins:
no plugin installed

I googled through web, I find the solution:
http://www.redmine.org/boards/2/topics/13625?r=15681 referenced: https://rails.lighthouseapp.com/projects/8994/tickets/1731-make-enable_starttls_auto-opt-in-in-actionmailer#ticket-1731-18

the action mailer cannot handle ssl smtp server correctly. the referenced url gives a bug fix for redmine (or for rails)


Files

mailer_ext.rb (646 Bytes) mailer_ext.rb the patch supplied by https://rails.lighthouseapp.com/projects/8994/tickets/1731-make-enable_starttls_auto-opt-in-in-actionmailer#ticket-1731-18 hongbo yang, 2014-06-20 10:14
Actions #1

Updated by hongbo yang over 10 years ago

  • Status changed from New to Resolved

hongbo yang wrote:

I'm setting up a Redmine with Bitnami Stack. All works but sending email not.

Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p545 (2014-02-24) [x86_64-linux]
Rails version 3.2.17
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.0
Filesystem
Redmine plugins:
no plugin installed

I googled through web, I find the solution:
http://www.redmine.org/boards/2/topics/13625?r=15681 referenced: https://rails.lighthouseapp.com/projects/8994/tickets/1731-make-enable_starttls_auto-opt-in-in-actionmailer#ticket-1731-18

the action mailer cannot handle ssl smtp server correctly. the referenced url gives a bug fix for redmine (or for rails)

I tried that smtp settings does have a ssl option
so currently we do not need the mailer_ext.rb patch file to work with SSL smtp server. but the ssl option is not mentioned in current doc

default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
  smtp_settings:
    address: smtp.domain.com
    port: 465
    ssl: true
    enable_starttls_auto: true
    domain: domain.com
    authentication: :login
    user_name: redmine@domain.com
    password: xxxx
Actions #2

Updated by Jan Niggemann (redmine.org team member) over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF