Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Problems using Mail::Sendmail to include an attachment

by hippo (Chancellor)
on Aug 04, 2020 at 20:41 UTC ( #11120289=note: print w/replies, xml ) Need Help??

in reply to Problems using Mail::Sendmail to include an attachment

use MIME::QUotedPrint;

That isn't a module on CPAN - you probably meant MIME::QuotedPrint. Regardless, this suggests that the code you have entered in your post is not the code which you are running. This makes it pretty close to impossible for another party to debug.

All that said, at least one error is that you are not separating the MIME headers from the bodies. Perhaps inserting that extra whitespace in your message is all you really need.

$msg{'body'}=<<eob; --$boundary Content-Type: text/plain Content-Transfer-Encoding: quoted-printable $req --$boundary Content-Type: text/csv Content-Tranfer-Encoding: base64 Content-Disposition: attachment; filename="account request for $cn.csv +" $estr --$boundary-- eob


Replies are listed 'Best First'.
Re^2: Problems using Mail::Sendmail to include an attachment
by desertrat (Sexton) on Aug 05, 2020 at 00:53 UTC
    The MIME::QuotedPrint error was a typo introduced in a later edit of my post; it was referenced correctly in my program. It was the missing white space that was causing the issue. Thank you very much!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11120289]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-09-28 00:44 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (143 votes). Check out past polls.