Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
set default locale to en
Commit Description:
set default locale to en
module MailHelperMethods
def send_mail ( to , subject , body )
mail = TMail :: Mail . new
mail . to = to
mail . from = Configuration [ 'system.online_registration.from' ]
mail . subject = subject
mail . body = body
smtp_server = Configuration [ '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
begin
Net :: SMTP . start ( smtp_server ) do | smtp |
smtp . send_message ( mail . to_s , mail . from , mail . to )
end
result = true
rescue
result = false
end
result
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