Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I assume the mistake is in this line: $msg->attach(Type =>'application/msword', Thanks in advance.$msg = MIME::Lite->new( From =>'...@myhost.com', To =>'edja...@quirkyjapan.or.tv', Subject =>'A message with 2 parts...', Type =>'multipart/mixed'); ### Add parts (each "attach" has same arguments as "new"): $msg->attach(Type =>'BINARY', Data =>"Here's the GIF file you wanted"); $msg->attach(Type =>'application/msword', Path =>'test.doc'); $text = $msg->as_string; $msg->send; print "done";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Mime::lite and .doc files
by pKai (Priest) on May 19, 2007 at 16:33 UTC | |
|
Re: Problem with Mime::lite and .doc files
by marto (Cardinal) on May 19, 2007 at 16:15 UTC | |
|
Re: Problem with Mime::lite and .doc files
by wjw (Priest) on May 19, 2007 at 16:08 UTC |