[imp] cant send mail via smtp or sendmail

Eric Rostetter eric.rostetter@physics.utexas.edu
Wed, 18 Sep 2002 16:58:30 -0500


Quoting bernard@netwerkinformatie.com:

> If however I want to send an email, (or upload a file, possibly the same
> problem), the

Perhaps you don't have php file uploads on?  Quoting the FAQ:

[IMP 3.x]: If when you press the Send button in the compose window it simply
returns the same compose windows contents and no mail is sent, then check that
you have PHP file uploads enabled. This is done by setting

file_uploads=On

in your system's php.ini (PHP 4.x) or php3.ini (PHP 3.x) file.

If you are using SMTP rather than a local Sendmail (or equivalent) binary, check
that you have set the variable

$conf['mailer']['type'] = 'smtp';

in horde/config/horde.php, and that you have set the smtphost value in
horde/imp/config/servers.php for your server entry to the correct smtp host
value. Note that this smtphost value will override any existing value for
$conf['mailer']['params']['host'] set in horde/config/horde.php.

If you are using a local Sendmail binary, first check to make sure that Sendmail
(or your Sendmail replacement) is located in the same place that the variable

   $conf['mailer']['params'] = array('sendmail_path' => '/usr/lib/sendmail');

in horde/config/horde.php is telling IMP to look. If it is there, make sure you
can send mail with it with the following Unix command:

   echo testing | /usr/bin/sendmail your@email.address

replacing /usr/bin/sendmail with your Sendmail path and your@email.address with
your email address. You should receive a (mostly empty) email message, or an
error message, almost immediately.

If Sendmail works from the command-line but IMP still refuses to send mail, you
may need to turn off PHP's Safe mode, with the following setting in your php.ini
file:

   safe_mode off

Before doing that, be sure to read the Security chapter of the PHP Manual.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

"Can you hear me now? ... Good!"
"Can you hear me now? ... Good!"