gryphonshafer / Email-Mailer

Multi-purpose emailer for HTML, auto-text, attachments, and templates
1 stars 1 forks source link

Question about one of your examples #5

Closed ldidry closed 3 years ago

ldidry commented 3 years ago

I have a question about the example line 226 of lib/Email/Mailer.pm.

# setup a second mail object based on the first but changing the "from"
my $mail_0 = Email::Mailer->new(
    from    => $from,
    subject => $subject,
    html    => $html,
);
my $mail_1->new( from => 'different_address@example.com' );
$mail_0->send;
$mail_1->send;

Should the be the $mail_1’s construction be like that?

my $mail_1 = $mail_0->new( from => 'different_address@example.com' );
gryphonshafer commented 3 years ago

Ah, yes. Good point. Looks like a POD bug. Thanks for reporting it.

gryphonshafer commented 3 years ago

Resolved with 37b9503.