Receiving Fatal Error when trying to send email from PHP script
Category: General Server Setup
"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?
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?
Best answer chosen by User
|
0
|
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. |
Like this Question?
Tweet
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed 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 |

