Hi All ,
im receiving this message while im trying to submit a form
failed to open stream: No such file or directory
i have already attached a file but while you submit the form you will receive this message ,also i would like to know what i have to right
in the file ,name ,project_rooth_path
Any thread would be appreciated
php tag :
$m= new clsEmail;
$m->From($email);
$m->To("<snip>");
$m->Subject(PROJECT_NAME." >> Careers Form Submitted");
$m->Body( $Content,"utf-8", "text/html");
if ($file)
{
move_uploaded_file($file, PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name']);
$m->Attach( PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name'], "application/x-unknown-content-type", "attachment" );
}
$m->Priority(1) ;
$m->Send();
$message="<strong>Message Sent Successfully...</strong><br/>";
}
else
$message="<strong style='color:red'>Please fill in the required fields then try again...</strong><br/>";
}
im receiving this message while im trying to submit a form
failed to open stream: No such file or directory
i have already attached a file but while you submit the form you will receive this message ,also i would like to know what i have to right
in the file ,name ,project_rooth_path
Any thread would be appreciated
php tag :
$m= new clsEmail;
$m->From($email);
$m->To("<snip>");
$m->Subject(PROJECT_NAME." >> Careers Form Submitted");
$m->Body( $Content,"utf-8", "text/html");
if ($file)
{
move_uploaded_file($file, PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name']);
$m->Attach( PROJECT_ROOT_PATH."tmp/".$HTTP_POST_FILES['file']['name'], "application/x-unknown-content-type", "attachment" );
}
$m->Priority(1) ;
$m->Send();
$message="<strong>Message Sent Successfully...</strong><br/>";
}
else
$message="<strong style='color:red'>Please fill in the required fields then try again...</strong><br/>";
}
Last edited by a moderator: