Set mimetype of outgoing mailings to multipart/alternative

This commit is contained in:
Martin Kamerbeek 2010-07-07 12:57:08 +02:00
parent 0721d6e2da
commit ec1b135dbd

View file

@ -213,9 +213,10 @@ sub send {
subject => $subject,
messageId => "$messageId\@$domain",
returnPath => "$messageId-bounce\@$domain",
contentType => 'multipart/alternative',
} );
$mail->addHtml( $body );
$mail->addText( $text );
$mail->addHtml( $body );
if ( $asset->can( 'getListHeaders' ) ) {
my $listHeaders = $asset->getListHeaders( $self->user->get('email') );