I am sending an email using PHP mail function, but I would like to add a specified PDF file as a file attachment to the email. How would I do that?
Here is my curren
To eliminate deprecation errors,
Replace
$body = eregi_replace("[\]",'',$body);
With
$body = preg_replace('/\.([^\.]*$)/i','',$body);