kidd has asked for the wisdom of the Perl Monks concerning the following question:
Hello...
Can someone tell me why doesnt this work...
my $msg = MIME::Lite->new( From =>$Input{'email'}, To =>$Input{'sender'}, Subject =>'New message', Type =>'multipart/mixed' ); $msg->attach(Type =>'TEXT', Data =>"$Input{'message'}" ); open(FILE, "attach.txt"); my @lines = <FILE>; close(FILE); foreach my $line(@lines){ $msg->attach(Type =>'image/gif', Path =>"/u619/be/bon/uploads/$line", Filename =>"$line", Disposition => 'attachment' ); } $msg->send; print "Content-type: text/html\n\n"; print "<h1>MAIL SENT</h1>";
What I have in my "attach.txt" text are the file names of pictures...the two of them in .jpg...
I know it's not a problem with the location of the library, and it isnt the sendmail path...
It would be great if you could tell me what Im doing wrong...
THANKS
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using MIME::Lite
by aseidas (Beadle) on Jul 15, 2002 at 19:49 UTC | |
by chromatic (Archbishop) on Jul 15, 2002 at 19:55 UTC | |
by kidd (Curate) on Jul 15, 2002 at 20:18 UTC | |
by Fastolfe (Vicar) on Jul 17, 2002 at 01:11 UTC | |
Re: Using MIME::Lite
by lachoy (Parson) on Jul 15, 2002 at 21:07 UTC | |
Re: Using MIME::Lite
by Fastolfe (Vicar) on Jul 15, 2002 at 19:00 UTC | |
by kidd (Curate) on Jul 15, 2002 at 19:32 UTC | |
Re: Using MIME::Lite
by Beatnik (Parson) on Jul 16, 2002 at 01:29 UTC |
Back to
Seekers of Perl Wisdom