Skip to content
Browse files

fix email config

  • Loading branch information...
1 parent 0ca3850 commit e810f48a95defa49f37736cc1f61eec7233b4159 @brandonmwest committed Apr 2, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 index.rb
View
8 index.rb
@@ -53,15 +53,13 @@
end
post '/email' do
- body = "Thanks for using I/O Doctor! Your JSON output is attached."
-
- puts params
+ body = params[:json];
Pony.mail(:to => params[:to_address],
+ :from => "json@iodoctor.net"
:subject => "I/O Doctor JSON Output",
:html_body => body,
- :body => body,
- :attachments => {"output.json" => params[:json]})
+ :body => body)
end
post '/file' do

0 comments on commit e810f48

Please sign in to comment.
Something went wrong with that request. Please try again.