Is there a quick and simple method/function to attach a file to an email using the mail() function?
Or do I need to go through the "manual" process of reading/encoding and then build the msg body, etc..?
For example, something like the "attach_file" function below would be perfect:
PHP Code:$file = "/my/file.txt";
$msg = "My message here.";
$msg = attach_file($file,$msg);
mail($to,$sub,$msg,$headers);




Bookmarks