Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by hippo (Bishop)
on Aug 04, 2020 at 20:41 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found