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:
#!/usr/bin/perl -w
use MIME::Lite;
### Create a new single-part message, to send a GIF file:
$msg = MIME::Lite->new(
From =>'sujata@k****ij.com',
To =>'sujata_atkcs@yahoo.com',
Cc =>'sujata_ghosh@hotmail.com',
Subject =>'Helloooooo, nurse!',
Type =>'image/gif',
Encoding =>'base64',
Path =>'/home/k****ijc/www/com/casestudy1.gif'
);
$msg->send; # send via default
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.