Question

I have a site that the other week was sending email just fine. All of a sudden it stopped working. I have narrowed the problem down to creating a new Mail_mime() object. Every time I try to use this the php just stops and returns a blank page or just what was created in the previous lines before that. There are no errors at all. The code below is what I have in the pages. If I comment out either include I of course get an error when it get to creating the Mail_mime. Any pointers, direction to look or suggestions on what to check or how to figure this out would be great. The host Tech support was a joke, especially considering I just wanted to know if they changed anything.

include('Mail.php');
include('Mail\mime.php');
$mime = new Mail_mime();

Thanks for any help, my head is about to explode trying to figure this out.

Was it helpful?

Solution

The only thing that's odd with the only code you presented is:

include('Mail\mime.php');

That should be:

include('Mail/mime.php');

In any case. (Regardless of server. Yes forward slashes work on DOS/Windows too. So why not keep it portable.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top