Vincent; I'm sending a attachment and $stevenattach comes from input type="file"
$path_of_file = $stevenattach;
$path_of_file = // replacing single \ to \ function
if($fp = fopen($path_of_file,"rb")) {
$attach=fread($path_of_file,filesize($path_of_file));
$encode=chunk_split(base64_encode($attach));
// and then the rest of the attach script
-Steven