View Single Post
  #9 (permalink)  
Old 06-20-07, 07:13 AM
sujata_ghosh sujata_ghosh is offline
Wannabe Coder
 
Join Date: May 2006
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot!

i have used and it working.

return path of the email is not working now:

Code:
 
 $msg = MIME::Lite->new(
        From      =>'Vikram Murarka <vikram@k****ij.com>',
        To        => $em,
        Return-path =>'inrreturn@k****ij.com',
        Reply-To    =>'Vikram Murarka <vikram@k****ij.com>',
        Subject   => $subject,
        Type   =>'text',
        Data   => $message
    );
$msg->attach (
        Type      => 'application/msword',
        Encoding  => 'base64',
        Path      => '/home/k****ijc/www/com/colour of money 26may07.doc'
) or die "Error adding the text message part: $!\n";
    $msg->send; # send via default
i used it on my older code like that: "-finrreturn\@k****ij.com"

Code:
open MAIL, "| $mail_prog -finrreturn\@k****ij.com" || die "I was not able to open the mail program<BR>contact the server's technical administrator.<BR><BR>If this is not admin, please let him/her<BR> know about this problem.";
print MAIL "To: $em\n";
............................
close MAIL;
instead of that its won't work. its very important as we have seperate email address for sorting different bad emails email list.

how do i incoorporate this now with new code. please advice.

also tell me how do i send HTML email with Image along with the text just like a html page. image will change time by time so

Thank a lot for your continuous help!
Reply With Quote