I don’t like PEARS or mail today

One of the websites I work a lot on has files offered for download. When a user clicks to download it runs through a script and verifies the user’s access prior to sending the file to the browser, then it sends an email to a group of admins to notify them that the user has downloaded the file.

Everything was dandy until Friday. I noticed today that there have been no download notifications since then…

There was also another element of the site that wasn’t working and it just so happened to be another mailer script.

Both scripts use the PHP PEAR mail and mime includes.

Based on some preliminary troubleshooting it appears that the script will execute just fine as long as this line is commented out:

$mail_object->send($recipients, $headers, $message);

Which kind of defeats the purpose since it is responsible for sending the mail message. I still can’t find the problem, but I suspect it has to do with the mail host.

For now I am using the built-in Joomla! mailer, which for some reason is working just fine.

Be Sociable, Share!