Forum Moderators: coopster
Whenever I run that this sentence I get this error:
Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
Could you please let me know any suggestion to solve this?
Thanks in advance.
[edited by: eelixduppy at 4:37 pm (utc) on Jan. 5, 2010]
If not, every domain has a virtual path. You just need to know what it is. Surely they can tell you that . . . .
include_once("/var/www/accounts/your-account/example.com/Mail.php");
Note Andrew's comments, and be sure it's Mail.php you want, not mail.php.
Snipped: No email quotes. Please read the TOS.
-------------------------------------------------------------
-------------------------------------------------------------
So, what do you say? I just would like to most straight forward approach. I think PEAR is a package that I cannot install in case it is not installed yet on the server since I do not have access to the server because it is not local hosted in my computer. I do not think it is enough by moving this Mail.php file to my website's folder since this Mail.php takes other includes recursively so I guess eventually you might need to take up the whole PEAR package which is about 26MB size in XAMPP installation and would take quite a while to be uploaded to the remote server. Moreover, I do not even know if that would work.
Another solution to avoid having to change the server with the problems it would take (I have wordpress installed and moving it to another server seems like more troubles) might be trying to avoid using PEAR even though the code of my site which was using this PEAR's mail package had already been tested by me on another server and was working great. May be there is some straight forward way to send emails with gmail accounts without using PEAR. Do you know anyone?
Thanks
[edited by: eelixduppy at 4:36 pm (utc) on Jan. 5, 2010]