
keith73
Novice
Jul 5, 2000, 12:18 PM
Post #1 of 5
(415 views)
|
|
Using send() method with MIME::LITE
|
Can't Post
|
|
Having a problem with MIME::LITE and have narrowed it down to a problem with the call to send. Just to test it, I used the example I found at CPAN and tossed in my own email address, path and file to send. Still get 500 errors and no file is sent. So I commented out just the $msg->send; portion of the code and no error occurred, of course, no message was sent either. I've tried bothe $msg->send and $msg->send() with the same results. Here's some code: $msg = new MIME::Lite From =>'keith@powersolution.com', To =>'webmaster@powersolution.com', Subject =>'Testing MIME-Lite!', Type =>'text/plain', Encoding =>'base64', Path =>'/fullserverpathtofile/imagename.gif'; $msg->send; print "Content-type:text/html\n\n"; print "Message Sent...<p>\n"; This is not working but commenting out the call to send results in seeing the output, "Message Sent...". This is just a tad frustrating because it looks like I'm doing it exactly like the example. As always, any help is sincerely appreciated. - keith
|