Advertisement
Guest User

Log Mailer Rails

a guest
Jul 16th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.94 KB | None | 0 0
  1. Started POST "/contact/send" for 127.0.0.1 at 2015-07-17 00:40:22 +0700
  2. Processing by ContactsController#create as JS
  3.   Parameters: {"utf8"=>"✓", "authenticity_token"=>"T0JfLtEQwmKNzySEpYf1AS/6iaqsBaqlQGlljEkiVJs=", "contact"=>{"name"=>"John Doe", "email"=>"for@bar.com", "subject"=>"Test Send A Message", "message"=>"This Message Is testing of send a message from my rails application"}, "commit"=>"Submit"}
  4.    (0.3ms)  BEGIN
  5.   SQL (95.1ms)  INSERT INTO "contacts" ("created_at", "email", "message", "name", "subject", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", "2015-07-16 17:40:22.098311"], ["email", "for@bar.com"], ["message", "This Message Is testing of send a message from my rails application"], ["name", "John Doe"], ["subject", "Test Send A Message"], ["updated_at", "2015-07-16 17:40:22.098311"]]
  6.    (53.2ms)  COMMIT
  7.   Rendered contact_mailer/contact_send.html.erb (1.5ms)
  8.  
  9. ContactMailer#contact_send: processed outbound mail in 284.8ms
  10.  
  11. Sent mail to contact@aei-1.com (1162.7ms)
  12. Date: Fri, 17 Jul 2015 00:40:22 +0700
  13. From: AEI Contact
  14. To: contact@aei-1.com
  15. Message-ID: <55a7ec868d90c_f7e71b330834c@dixin-ubuntu.mail>
  16. Subject: New Message
  17. Mime-Version: 1.0
  18. Content-Type: text/html;
  19.  charset=UTF-8
  20. Content-Transfer-Encoding: 7bit
  21.  
  22. <html lang="en">
  23. <head>
  24.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  25.     <style type="text/css" media="screen">
  26.       body { border-radius: 10px; background-color: #197cd9; color: #fff; font-family: 'Open Sans', sans-serif; font-weight: 300; }
  27.       a { color: #FFFFFF; }
  28.       a:hover, a:focus { color: #ccc; -webkit-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; }
  29.       .table-email { width:100%; }
  30.       .table-email tr { line-height:20px; }
  31.       .table-email td { width: 10%; vertical-align: top; text-align: left; }
  32.       .table-email td:first { font-weight: bold; }
  33.       .table-email td.pre-wrap { white-space: pre-wrap; }
  34.       .table-email td.tdw10 { width:10%; }
  35.       .table-email td.tdw2 { width:2%; }
  36.       .table-email td.tdw75 { width:75%; }
  37.     </style>
  38. </head>
  39. <body>
  40.  
  41. <p>Hello,</p>
  42.  
  43. <p>You have receive a message from <a href="mailto:for@bar.com">for@bar.com</a></p>
  44.  
  45. <table class="table-email">
  46.     <tr>
  47.         <td class="tdw10"><strong>Name</strong></td>
  48.         <td class="tdw2">:</td>
  49.         <td class="tdw75">John Doe</td>
  50.     </tr>
  51.     <tr>
  52.         <td class="tdw10"><strong>Subject</strong></td>
  53.         <td class="tdw2">:</td>
  54.         <td class="tdw75">Test Send A Message</td>
  55.     </tr>
  56.     <tr>
  57.         <td class="tdw10"><strong>Message</strong></td>
  58.         <td class="tdw2">:</td>
  59.         <td class="tdw75 pre-wrap">This Message Is testing of send a message from my rails application</td>
  60.     </tr>
  61. </table>
  62.  
  63. </body>
  64. </html>
  65.   Rendered shared/_flash_message.html.erb (1.1ms)
  66.   Rendered contacts/create.js.erb (3.0ms)
  67. Completed 200 OK in 1707ms (Views: 63.4ms | ActiveRecord: 148.6ms)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement