Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fig bugs in login report
Commit Description:
fig bugs in login report
module MailHelperMethods
def send_mail ( mail_to , mail_subject , mail_body )
mail_from = GraderConfiguration [ 'system.online_registration.from' ]
smtp_server = GraderConfiguration [ 'system.online_registration.smtp' ]
if [ 'fake' , 'debug' ]. include? smtp_server
puts "-------------------------
To: #{ mail_to }
From: #{ mail_from }
Subject: #{ mail_subject }
#{ mail_body }
--------------------------
"
return true
end
mail = Mail . new do
from mail_from
to mail_to
subject mail_subject
body mail_body
end
mail_option = {
:address => smtp_server ,
# :domain => nil,
# :port => 25,
# :user_name => nil,
# :password => nil,
# :authentication=>'plain',
# :enable_starttls_auto => true
}
mail . delivery_method :smtp , mail_option
mail . deliver
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings