I use Pear's mail to send emails. It works great connecting to smtp server. However it will not work Command Line method/cron
I get
Code: Select all
<b>Warning</b>: main(Mail.php): failed to open stream: No such file or directory in <b>/path/file.php</b> on line <b>2</b><br />
<br />
<b>Warning</b>: main(): Failed opening 'Mail.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>/path/file.php</b> on line <b>2</b><br />include("/usr/share/pear/Mail.php");
Instead of
include("Mail.php");
I get past the point above and now get
Code: Select all
<br />
<b>Warning</b>: send(Net/SMTP.php): failed to open stream: No such file or directory in <b>/usr/share/pear/Mail/smtp.php</b> on line <b>148</b><br />
<br />
<b>Warning</b>: send(): Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>/usr/share/pear/Mail/smtp.php</b> on line <b>148</b><br />
<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: net_smtp in <b>/usr/share/pear/Mail/smtp.php</b> on line <b>150</b><br />