Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ActionMailer in Rails 3

3,785 views

Published on

ActionMailer in Rails 3

Published in: Technology, Education
  • Be the first to comment

ActionMailer in Rails 3

  1. 1. ActionMailer in Rails 3 aspgems.com 7 de julio de 2010
  2. 2. Tmail => Mail (Mikel Lindsaar) 2
  3. 3. $ rails g mailer UserMailer app/mailers/user_mailer.rb app/views/user_mailer test/functional/user_mailer_test.rb 3 3
  4. 4. 4 4
  5. 5. 5 5
  6. 6. 6 6
  7. 7. app/views/user_mailer/welcome.text.erb 7 7
  8. 8. app/views/user_mailer/welcome.html.erb 8 8
  9. 9. 9
  10. 10. Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_4c335924b2302_3aee57f337a543c0"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_4c335924b2302_3aee57f337a543c0 Content-Type: text/plain; ----==_mimepart_4c335924b2302_3aee57f337a543c0 Content-Type: text/html; ----==_mimepart_4c335924b2302_3aee57f337a543c0-- 10 10
  11. 11. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_4c335ab2bc955_3b1f5c455fe32083"; charset=UTF-8 ----==_mimepart_4c335ab2bc955_3b1f5c455fe32083 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="--==_mimepart_4c335ab2bc2bf_3b1f5c455fe31989"; charset=UTF-8 ----==_mimepart_4c335ab2bc2bf_3b1f5c455fe31989 Content-Type: text/plain; ----==_mimepart_4c335ab2bc2bf_3b1f5c455fe31989 Content-Type: text/html; ----==_mimepart_4c335ab2bc2bf_3b1f5c455fe31989-- ----==_mimepart_4c335ab2bc955_3b1f5c455fe32083 Date: Tue, 06 Jul 2010 18:32:50 +0200 Mime-Version: 1.0 Content-Type: image/png; charset=UTF-8; filename=rails.png Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=rails.png ----==_mimepart_4c335ab2bc955_3b1f5c455fe32083-- 11 11
  12. 12. :subject => " 今日は Mate!" Subject: =?UTF-8?Q?=E4=BB=8A=E6=97=A5=E3=81=AF_Mate!?= 12 12
  13. 13. 13
  14. 14. 14 14
  15. 15. 15 15
  16. 16. ¡gracias!

×