Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/racke/email-sender-transport-redirect
Email::Sender::Transport::Redirect Perl module
https://github.com/racke/email-sender-transport-redirect
Last synced: 5 days ago
JSON representation
Email::Sender::Transport::Redirect Perl module
- Host: GitHub
- URL: https://github.com/racke/email-sender-transport-redirect
- Owner: racke
- Created: 2012-07-20T12:21:45.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T14:32:42.000Z (over 6 years ago)
- Last Synced: 2024-11-18T18:43:48.662Z (2 months ago)
- Language: Perl
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
Email::Sender::Transport::Redirect - Intercept all emails and redirect
them to a specific addressVERSION
Version 0.006
SYNOPSIS
$transport_orig = Email::Sender::Transport::Sendmail->new;
$transport = Email::Sender::Transport::Redirect->new({transport => $transport_orig,
redirect_address => '[email protected]',
});DESCRIPTION
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.ATTRIBUTES
redirect_address
Recipient email address for redirected emails. This value, which can be
either a string or an hashref, is passed to the
Email::Sender::Transport::Redirect::Recipients constructor.redirect_headers
Email headers to be changed, defaults to an array reference containing:
To
CC
intercept_prefix
Prefix for headers which show the original recipients.
Defaults to X-Intercepted-.
METHOD MODIFIERS
send_email
Wraps around original method and changes email headers.
AUTHOR
Stefan Hornburg (Racke), [email protected]
ACKNOWLEDGEMENTS
Thanks to Peter Mottram for the port to Moo (GH #1).
Thanks to Matt Trout for his help regarding the initial write of this
module on #dancer IRC.LICENSE AND COPYRIGHT
Copyright 2012-2015 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.