To me it seems like I have everything I need, I just need to link or glue all the pieces together. When I try to go to the estimate.php page via an IE web browser I get the following error:

Code:

Warning: require_once(../php/smtp.php) [function.require-once]: failed to open stream: No such file or directory in ../public_html/estimate.php on line 49
Fatal error: require_once() [function.require]: Failed opening required '../php/smtp.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <mycpanle_home_root>/public_html/estimate.php on line 49

Line 49 would be require_once "../php/Mail.php"; It can't find the php/Mail.php file, but is there...

It seems like the 'ROOT_PATH' is Not defined; I can't find the php.ini file and I don't know how to define the 'ROOT_PATH'.

The php.ini file is stored at /usr/local/lib/php.ini by default. If you do not have root access, you can create your own php.ini file in /home/$username if your host uses a PHP handler that supports it.

I am pass that problem, now I need to configure PHP to use that mail server as its primary mail server. Where can I find the php.ini file so I can set the following options:
<> SMTP — The hostname of your SMTP server; default is localhost
<> smtp_port — The port for your SMTP server; default is 25
<> sendmail_from — The name and email to set for the from header
<> sendmail_path — Path to sendmail or a sendmail-capable utility

Staff Member

Those values should be configured in your PHP script and not in the php.ini file. I recommend consulting with your web hosting provider for assistance because they can review the existing php.ini file if necessary, or troubleshoot the 535 error.