NAME
Sietima::Message - an email message with an envelope
VERSION
version 1.1.2
SYNOPSIS
use Sietima::Message;
my $msg = Sietima::Message->new({
mail => $email_mime_object,
from => 'sender@example.com',
to => [ 'recipient@example.com', 'also@example.com' ],
});
DESCRIPTION
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
.
ATTRIBUTES
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.
to
An arrayref of Sietima::Subscriber
objects, each coercible from a string or an Email::Address
object, representing the recipients.
METHODS
envelope
my %envelope = $message->envelope->%*;
Returns a hashref with envelope data, suitable for use with Email::Sender::Transport::send
.
AUTHOR
Gianni Ceccarelli <dakkar@thenautilus.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 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.