in reply to Re^3: Sending a email with file attachment with LWP ONLY
in thread Sending a email with file attachment with LWP ONLY

Irrelevant? MIME stands for Multipurpose Internet Mail Extensions. "Extensions," therefore not part of the core system. The OP needs to send attachments, so it's true that he's going to have to use MIME, but the claim "if you don't use MIME, you're not sending email" is completely wrong, and deserved to be corrected. You most certainly can send email without MIME.

Aaron B.
Available for small or large Perl jobs; see my home node.

  • Comment on Re^4: Sending a email with file attachment with LWP ONLY

Replies are listed 'Best First'.
Re^5: Sending a email with file attachment with LWP ONLY
by tobyink (Canon) on Jul 05, 2012 at 13:22 UTC

    Attachments were routinely sent prior to the advent of MIME. You'd just encode the file using UUEncode, paste the result into the body of the message and send it. It might sound somewhat manual, but in practice mail clients could automate some/all of that, albeit with some false positives and false negatives in detecting where attachments began and ended.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re^5: Sending a email with file attachment with LWP ONLY
by Anonymous Monk on Jul 05, 2012 at 13:19 UTC

    Irrelevant? ... The OP needs to send attachments, so it's true ...

    Exactly -- no need to scrutinize every syllable as if I'm writing an encyclopedia