i m using this code in php
<?
include "mime_mail.inc";
print "Sending files to $recipient.";
set up $mail object
$mail = new mime_mail;
$mail->from = "shams1486@yahoo.com";
$mail->to = $recipient;
$mail->subject = "Your files";
$mail->body = "Hello, here are your files.";
copy file to server
exec("cp $send_file1 /tmp/$send_file1_name");
file read
$content_type1 = "$send_file1_type";
$fp1=fopen("/tmp/$send_file1_name","r");
$data1=fread($fp1,filesize($send_file1));
fclose($fp1);
remove tmp file
exec("rm -rf /tmp/$send_file1_name");
attach
$mail->add_attachment($data1,$send_file1_name, $content_type1);
send e-mail
$mail->send();
print "file1:$send_file1_name ";
print "I've sent off the e-mail.";
?>
i can recieve the mail but with no attachment plz find what the error is y i m not getting attached file. as i had uploaded the file "mime_mail.inc"