Added send via gmail
This commit is contained in:
parent
1400f971e1
commit
1cc6bd8c91
1 changed files with 11 additions and 1 deletions
12
config.ru
12
config.ru
|
@ -20,7 +20,17 @@ class MyMain < Rack::TryStatic
|
|||
Pony.mail( :to => "yann.esposito@gmail.com",
|
||||
:from => request[:mail],
|
||||
:subject => 'YPassword support',
|
||||
:body => request[:body])
|
||||
:body => request[:body],
|
||||
:via_options => {
|
||||
:address => 'smtp.gmail.com',
|
||||
:port => '587',
|
||||
:enable_starttls_auto => true,
|
||||
:user_name => 'yann.esposito.help@gmail.com',
|
||||
:password => '9wHbwyFeniThZUU2Dv14gdNqhVw',
|
||||
:authentification => :plain,
|
||||
:domain => "HELO",
|
||||
}
|
||||
)
|
||||
return [200, {
|
||||
"Last-Modified" => File.mtime($mailFile).httpdate,
|
||||
"Content-Type" => "text/html",
|
||||
|
|
Loading…
Reference in a new issue