Guest User

Untitled

a guest
Aug 24th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. Rails 3 ActionMailer - no recipent address
  2. A message that you sent using the -t command line option contained no
  3. addresses that were not also on the command line, and were therefore
  4. suppressed. This left no recipient addresses, and so no delivery could
  5. be attempted.
  6.  
  7. ------ This is a copy of your message, including all the headers. ------
  8.  
  9. Date: Sat, 17 Sep 2011 21:06:42 +0000
  10. From: noreply@mydomain.com
  11. To: myemail@mydomain.com
  12. Message-ID: <4e750be27b3ef_4a9c159402ee91b039763@themailserver.com>
  13. Subject: test
  14. Mime-Version: 1.0
  15. Content-Type: text/plain;
  16. charset=UTF-8
  17. Content-Transfer-Encoding: 7bit
  18.  
  19. default :recipient => 'noreply@mydomain.com'
  20.  
  21. class Emailtousers < ActionMailer::Base
  22. default :from => "noreply@mydomain.com"
  23. default :recipient => "noreplay@mydomain.com"
  24. def plan_notification(resource)
  25. @resource = resource
  26. puts resource
  27. mail(:to => "myemail@mydomain.com", :subject => 'test')
  28. end
  29. end
Add Comment
Please, Sign In to add comment