Actions
Defect #22894
closedIntercepting Emails
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Hi !
I try to follow the Rails documentation to intercept email on dev and staging environement
http://guides.rubyonrails.org/action_mailer_basics.html#intercepting-emails
But it doesn't complatly works, the mail is send to sandbox@example.com but also to the original recipient.
When I use byebug just in the first line of the self.delivering_email method message.to is empty.
[1, 7] in /Users/jbertrand/workspace/redmine_silicon/lib/mail_interceptor.rb 1: class MailInterceptor 2: def self.delivering_email(message) 3: byebug => 4: message.subject = "[for: #{message.to.to_s} from: #{message.from.to_s}] #{message.subject}" 5: message.to = ['test+redmine@siliconsalad.com'] 6: end 7: end (byebug) message.to (byebug) message.to.inspect []
Updated by Toshi MARUYAMA over 8 years ago
- Category deleted (
Issues) - Status changed from New to Closed
- Resolution set to Invalid
Please use forum for question.
Actions