Subject: | Strange behavior with multiple files attachment |
Date: | Wed, 6 Jan 2016 22:05:47 -0500 |
To: | bug-Email-Send-SMTP-Gmail [...] rt.cpan.org |
From: | Gaetan Lord <email [...] gaetanlord.ca> |
Hi
Not sure if this is part of the multipart email protocol but I experience
an issue that need at least some clarification.
I have a perl script producing pdf files (4), and I
use Email::Send::SMTP::Gmail attachment to send them in a single email.
Perl version 5.20.2
Email::Send::SMTP::Gmail Version 0.99
When I send the files to a gmail account, everything looks good and I see
only 4 pdf files attachment
But some of the recipients are not using gmail or yahoo. They get their
email from providers, and thier email contain other attachement files.
Those are actually empty files, with a mime type of text/plain. Look like
gmail is striping empty file attachment.
I try both way to send attachement and they both behave the same
Is there any way to remove those plain text files, because some recipient
can't see the PDF files, the plain text file seem to interact with the pdf
output.
Thank for any help
This is the list of attachment the email get
I 1 <no description> [text/html,
7bit, utf-8, 3.5K]
A 2 galmond_card_carte.pdf
[applica/pdf, base64, 631K]
I 3 <no description>
[text/plain, 7bit, us-ascii, 0K]
A 4 galmond_letter_lettre.pdf
[applica/pdf, base64, 84K]
I 5 <no description>
[text/plain, 7bit, us-ascii, 0K]
A 6 galmond_business_card.pdf
[applica/pdf, base64, 72K]
I 7 <no description>
[text/plain, 7bit, us-ascii, 0K]
A 8 galmond_carte_affaire.pdf
[applica/pdf, base64, 72K]
I 9 <no description>
[text/plain, 7bit, us-ascii, 0K]
This is the content of the email where you could see the text/plain section
of the multipart email
11613
NGVkYmJjNWVjYzRjNDNkPiA8ZGM2NTQ5NTExYmFlNGViYzY2YmM2YWY1NmQ4YmYyYjQ2MDYxYjAw
11614
NjcxN2U2N2UyYzRlZGJiYzVlY2M0YzQzZD5dCj4+CnN0YXJ0eHJlZgo1NDUzNQolJUVPRgo=
11615
11616 --This-is-a-mail-boundary-8217539
11617 Content-Type: text/plain
11618
11619
11620 --This-is-a-mail-boundary-8217539--
11621
--
Gaetan Lord->