[imp] Re: cannot send messages using smtp

Guy guy at de-schepper.be
Tue Mar 25 11:16:07 PST 2003


changing
	$conf['mailer']['params'] = array('auth' => 'true');
to
	$conf['mailer']['params'] = array('auth' => true);

didn't solve the problem (as I expected, because imp is using the wrong server, so the authentication step is never reached).


But after debugging a while, I found the following:

it seems that for some reason the settings are lost.
What I mean, is that in imp/lib/compose.php, $params should contain the settings for the smtp server, but
after modifying the file a bit so that it displays some more info:

		Horde::logMessage($params['host'], __FILE__, __LINE__, LOG_INFO);
		Horde::logMessage($params['port'], __FILE__, __LINE__, LOG_INFO);
		Horde::logMessage($params['auth'], __FILE__, __LINE__, LOG_INFO);
		Horde::logMessage($params['username'], __FILE__, __LINE__, LOG_INFO);
		Horde::logMessage($params['password'], __FILE__, __LINE__, LOG_INFO);

I saw that only the password is available !
host, port, auth and username are empty.

because of that, pear uses its defaults (from <php-dir>\pear\mail\smtp.php).

I temporarily changed those defaults to my own settings (as in horde/config/conf.php) to test if it
would work then, but it isn't (at least, not as it should)

Everything seems to work (my mail server log shows the communication with imp, login successfull, etc), but
for some reason, the content (subject and message itself) can't be send.

the compose window shows this error:
	There was an error sending your message: unable to send data





More information about the imp mailing list