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

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected] |[email protected]
                   |ity.org                     |

--- Comment #1 from David Cook <[email protected]> ---
Most of my clients don't use this script, but I have bumped into this issue
with those that do.

I'm also able to reproduce it using koha-testing-docker, a quick Perl script,
and an external SMTP server.

--

If you look at Email::Stuffer::email() and Email::MIME::parts_set(), it becomes
clear that if Email::Stuffer only has 1 part (e.g. an attachment), it will
always be sent out as a single part email (ie direct attachment) and not a
multipart. 

It seems that different email clients handle single part emails differently. As
Magnus has observed, sometimes the HTML is in the body of an email. I see CSVs
get added as attachments with the subject line of the email as the filename
plus ".txt" at the end. 

I think the best practice is to use "multipart/mixed" even when there is only a
single part as it has the best email client compatibility. But that's not how
Email::MIME seems to work.

--

In the past, I've solved this the same way Magnus has by adding a "text_body"
value. Even if it's just " ", it would work.

However, it appears that an alternative is just to set the "Content-Type"
header at the email level.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to