View Single Post
  #3 (permalink)  
Old 06-19-07, 04:15 AM
sujata_ghosh sujata_ghosh is offline
Wannabe Coder
 
Join Date: May 2006
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Drunken Perl Coder!

i have used this code and try to execute it but working CHMOD is 755 and filename is sendmail2.pl but its giving 500 internal server error.

perl Code:
  1. #!/usr/bin/perl -w
  2. use MIME::Lite;
  3.     ### Create a new single-part message, to send a GIF file:
  4.     $msg = MIME::Lite->new(
  5.         From     =>'sujata@k****ij.com',
  6.         To       =>'sujata_atkcs@yahoo.com',
  7.         Cc       =>'sujata_ghosh@hotmail.com',
  8.         Subject  =>'Helloooooo, nurse!',
  9.         Type     =>'image/gif',
  10.         Encoding =>'base64',
  11.         Path     =>'/home/k****ijc/www/com/casestudy1.gif'
  12.     );
  13.     $msg->send; # send via default
  14.  

i have got this code from here: http://search.cpan.org/dist/MIME-Lit...mages_included!

i have checked that MIME::Lite is installed on our perl server.

Please help!

Thanks.

Last edited by UnrealEd; 06-19-07 at 04:20 AM. Reason: please use the [highlight=perl] tag when posting perl code
Reply With Quote