Jump to content

Email form problems


glitch003

Recommended Posts

Hi, I'm trying to send an email with a php script but the SMTP server requires authentication so I can't use PHP's built in mail() function.  So I'm trying to use the pear mail packages to send the messages but I'm getting a bunch of errors.

 

Here's the tutorial that I followed and my code looks basically identical to this:

http://www.cyberciti.biz/tips/howto-php-send-email-via-smtp-authentication.html

 

and these are the errors I get when I run the script via my mail form:

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 206

Warning: 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 206

Fatal error: Class 'Net_SMTP' not found in /usr/local/lib/php/Mail/smtp.php on line 210

 

Does anyone know what's causing these errors and how I can fix them?  Is there another package I can use or is pear not properly installed or what?  Thanks!!

Link to comment
https://forums.phpfreaks.com/topic/196841-email-form-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.