Receiving Fatal Error when trying to send email from PHP script


RalphM
Asked:
2012-05-07 3:09 pm EST

Hits: 2,024
"Fatal error: Class 'Net_SMTP' not found in /usr/local/lib/php/Mail/smtp.php on line 349"

Using FormMail.php from www.tectite.com - set it up to send using SMTP with an existing valid mailserver, userid, and password.

My hosting account/site at InMotion is new so I am still using the temp URL to access the site (if that makes a difference). I noticed the pnp.ini file in the root directory says "for development use only" - is that an issue?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

CNick
1,344 Points
2012-05-07 3:26 pm EST
Hi RalphM,

That error indicates that the Net_SMTP PEAR package needs to be installed. You can easily <a href="http://www.inmotionhosting.com/support/website/cpanel/how-to-install-a-pear-module">install PEAR packages</a> through your cPanel account.

The only reference I see regarding "for development use only" in your php.ini states "By default, PHP installs itself with a configuration suitable for development purposes, and *NOT* for production purposes." This means that the default PHP settings are normally set for development, so you may need to <a href="http://www.inmotionhosting.com/support/website/general-server-setup/update-local-php-settings">make changes to your PHP settings</a> (in that php.ini file) in order for your live site to function as expected.

If you have any additional questions or need further assistance, please feel free to contact us.

Regards,

Christi N.

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!