Sietima::Message - an email message with an envelope
version 1.0.4
use Sietima::Message; my $msg = Sietima::Message->new({ mail => $email_mime_object, from => 'sender@example.com', to => [ 'recipient@example.com', 'also@example.com' ], });
This class pairs a Email::MIME object with its envelope. Objects of this class are usually generated by Sietima::munge_mail, and consumed by Sietima::send_message.
Email::MIME
Sietima::munge_mail
Sietima::send_message
All attributes are read-only and required.
mail
An Email::MIME object, representing the message.
from
An Email::Address object, coercible from a string, representing the sender.
Email::Address
to
An arrayref of Sietima::Subscriber objects, each coercible from a string or an Email::Address object, representing the recipients.
Sietima::Subscriber
envelope
my %envelope = $message->envelope->%*;
Returns a hashref with envelope data, suitable for use with Email::Sender::Transport::send.
Email::Sender::Transport::send
Gianni Ceccarelli <dakkar@thenautilus.net>
This software is copyright (c) 2017 by Gianni Ceccarelli <dakkar@thenautilus.net>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Sietima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sietima
CPAN shell
perl -MCPAN -e shell install Sietima
For more information on module installation, please visit the detailed CPAN module installation guide.