RSS

Daily Archives: January 20, 2012

Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php

Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php on line xWarning: include_once() [function.include]: Failed opening ‘Net/SMTP.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /usr/local/lib/php/Mail/smtp.php on line xFatal error: Class ‘Net_SMTP’ not found in /usr/local/lib/php/Mail/smtp.php on line x

Soultion:

Check following things:
==========================
Pear list
You must see
Mail 1.2.0 stable
Pear 1.2.0 stable
==========================

This means pear mail is installed, now if you look closer to the error i.e
Failed opening ‘Net/SMTP.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /usr/local/lib/php/Mail/smtp.php on line xFatal error: Class ‘Net_SMTP’ not found in /usr/local/lib/php/Mail/smtp.php on line x

This means that the Net_SMTP is not installed
Just install it by

pear install Net_SMTP

Thats it now the email must run 😎

Advertisements
 
Leave a comment

Posted by on January 20, 2012 in Uncategorized