4images Forum & Community

4images Help / Hilfe => Error Messages / Fehlermeldungen => Topic started by: Chris on December 18, 2002, 05:02:30 AM

Title: Errors when trying to send email using SMTP
Post by: Chris on December 18, 2002, 05:02:30 AM
Common error messages include:

Quote
Warning: fgets(): supplied argument is not a valid File-Handle resource in /pub/www/user41/htdocs/4images/includes/email.php on line 185
Quote
Email Error: Invalid mail server response (service not ready?):
SMTP (Simple Mail Transfer Protocol) is the most widely used method of sending email from email accounts.  But when it comes to using it from php on a web site, the vast majority of web hosts do not have it enabled. 

Right out of the box, PHP has an email function built into it.  Under UNIX it almost always uses a program called sendmail to do the actual sending.  Only under MS Windows is it possible, perhaps even likely, that php might be configured to use SMTP.  (More info at php.net (http://www.php.net/manual/en/ref.mail.php)) Therefore the general recommendation is to turn off SMTP for sending emails unless you know for sure your web site is running on MS Windows and/or you've already tried the method below.

To use php to send email from 4images:
Title: Re: Errors when trying to send email using SMTP
Post by: per4mance on March 29, 2009, 10:51:27 PM
Maybe this could be a useful article for you : http://www.4homepages.de/forum/index.php?topic=24504