Guest User

Untitled

a guest
Jul 18th, 2018
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. def booking_confirmed_email(booking)
  2. @booking = booking
  3. mail(:to => booking.contact_email,
  4. :bcc => "my@email.com",
  5. :subject => "Congratulations, #{booking.contact_name}!")
  6. end
  7.  
  8. def booking_confirmed_email(booking)
  9. @booking = booking
  10. mail(:to => booking.contact_email,
  11. :bcc => ["my@email.com"],
  12. :subject => "Congratulations, #{booking.contact_name}!")
  13. end
  14.  
  15. mail(:to => "some@example.com" , :subject => "Example Subject"
  16. :bcc => ["bcc@example.com", "Order Watcher <watcher@example.com>"] ,
  17. :cc => "other@example.com" )
  18.  
  19. mail(:subject => "enter your subject", :bcc => "email@email.com")
  20.  
  21. @bcc = User.all.email
  22.  
  23. mail(:subject => "enter your subject", :bcc => @bcc)
Add Comment
Please, Sign In to add comment