Description:
update mail functionality. Update syntax for mail gem (we might need more options for mail setting?)
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r348:fc78be8c614c - - 2 files changed: 14 inserted, 3 deleted
@@ -129,7 +129,7 | |||
|
129 | 129 | :login => user.login, |
|
130 | 130 | :password => user.password, |
|
131 | 131 | :activation_url => activation_url, |
|
132 | - :admin_email => admin_email | |
|
132 | + :admin_email => GraderConfiguration['system.admin_email'] | |
|
133 | 133 | }) |
|
134 | 134 | |
|
135 | 135 | logger.info mail_body |
@@ -145,7 +145,7 | |||
|
145 | 145 | :contest_name => contest_name, |
|
146 | 146 | :login => user.login, |
|
147 | 147 | :password => user.password, |
|
148 | - :admin_email => admin_email | |
|
148 | + :admin_email => GraderConfiguration['system.admin_email'] | |
|
149 | 149 | }) |
|
150 | 150 | |
|
151 | 151 | logger.info mail_body |
@@ -22,7 +22,18 | |||
|
22 | 22 | body mail_body |
|
23 | 23 | end |
|
24 | 24 | |
|
25 | - mail.delivery_settings = { :address => smtp_server } | |
|
25 | + mail_option = { | |
|
26 | + :address => smtp_server, | |
|
27 | + # :domain => nil, | |
|
28 | + # :port => 25, | |
|
29 | + # :user_name => nil, | |
|
30 | + # :password => nil, | |
|
31 | + # :authentication=>'plain', | |
|
32 | + # :enable_starttls_auto => true | |
|
33 | + } | |
|
34 | + | |
|
35 | + mail.delivery_method :smtp, mail_option | |
|
36 | + | |
|
26 | 37 | mail.deliver |
|
27 | 38 | end |
|
28 | 39 |
You need to be logged in to leave comments.
Login now