InMotion Hosting Support Center

Receiving Fatal Error when trying to send email from PHP script

2012-05-07 3:09 pm EST

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

Using FormMail.php from - 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


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="">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="">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.


Christi N.

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

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Need more Help?


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:
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!