Adding basic list header support.
This commit is contained in:
parent
218ebbbad6
commit
573813f5ee
2 changed files with 27 additions and 0 deletions
|
|
@ -191,6 +191,14 @@ sub send {
|
|||
} );
|
||||
$mail->addHtml( $body );
|
||||
|
||||
if ( $asset->can( 'getListHeaders' ) ) {
|
||||
my $listHeaders = $asset->getListHeaders( $self->user->get('email') );
|
||||
|
||||
while ( my ($header, $value) = each %{ $listHeaders } ) {
|
||||
$mail->addHeaderField( $header, $value );
|
||||
}
|
||||
}
|
||||
|
||||
# And send it.
|
||||
my $success = $mail->send;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue