[Koha-bugs] [Bug 22343] Add configuration options for SMTP servers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 27 05:37:30 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343

--- Comment #232 from David Cook <dcook at prosentient.com.au> ---
Looks like this change has introduced a regression where we aren't passing the
content type to Koha::Email, which means we can't send emails with attachments
anymore (multi-part/mixed emails).


@@ -1314,29 +1329,66 @@ sub _send_message_by_email {
                 ? ( bcc => C4::Context->preference('NoticeBcc') )
                 : ()
             ),
-            from    => $message->{'from_address'} || $branch_email,
-            replyto => $message->{'reply_address'} || $branch_replyto,
-            sender  => $branch_returnpath,
-            subject => $subject,
-            message => $is_html ? _wrap_html( $content, $subject ) : $content,
-            contenttype => $content_type
+            from     => $message->{'from_address'}  || $branch_email,
+            reply_to => $message->{'reply_address'} || $branch_replyto,
+            sender   => $branch_returnpath,
+            subject  => "" . $message->{subject}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list