I am attempting to send email with attachment using pear mail package. I have coded as described by Maerlyn in PHP: How to send email with attachment using smtp settings? The mail is not being sent; I don't know how to debug. There is no output to this piece of code either:
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
}
By echoing after each line of code, I figured out that this line of code fails, as php fails to echo anything placed after this line.
$mime = new Mail_mime(array('eol' => $crlf));
Pear package is correctly installed, as I am using successfully on other pages. I have also included include "Mail/mime.php";
Any idea what is going wrong here?