Email::Sender::Transport::Redirect - Intercept all emails and redirect them to a specific address
Version 0.0001
$transport_orig = Email::Sender::Transport::Sendmail->new; $transport = Email::Sender::Transport::Redirect->new({transport => $transport_orig, redirect_address => 'shop@nitesi.com', });
Transport wrapper for Email::Sender which intercepts all emails and redirects them to a specific address.
This transport changes the To and CC header in the email and adds a X-Intercepted-To and X-Intercepted-CC header with the original recipients.
To
CC
X-Intercepted-To
X-Intercepted-CC
Stefan Hornburg (Racke), racke@linuxia.de
racke@linuxia.de
Please report any bugs or feature requests to bug-email-sender-transport-redirect at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-Sender-Transport-Redirect. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-email-sender-transport-redirect at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Email::Sender::Transport::Redirect
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-Sender-Transport-Redirect
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Email-Sender-Transport-Redirect
CPAN Ratings
http://cpanratings.perl.org/d/Email-Sender-Transport-Redirect
Search CPAN
http://search.cpan.org/dist/Email-Sender-Transport-Redirect/
Thanks to Matt Trout for his help regarding the initial write of this module on #dancer IRC.
Copyright 2012 Stefan Hornburg (Racke).
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Email::Sender::Transport::Redirect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Sender::Transport::Redirect
CPAN shell
perl -MCPAN -e shell install Email::Sender::Transport::Redirect
For more information on module installation, please visit the detailed CPAN module installation guide.