Receiving Fatal Error when trying to send email from PHP script

Avatar
  • Answered
"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?
Avatar
CNick
Hi RalphM, That error indicates that the Net_SMTP PEAR package needs to be installed. You can easily install PEAR packages 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 make changes to your PHP settings (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.