[imp] Re: cannot send messages using smtp

Jeff Graves jeff at image-src.com
Tue Mar 25 07:47:31 PST 2003


Here's the problem:

// An array holding any parameters that the Mail object will need to
// function correctly. For sendmail, this is mainly the sendmail_path
// option; SMTP requires at least a server and a port (if
nonstandard).
// SMTP authentication can be enabled by setting the 'auth' parameter
// to true.
$conf['mailer']['params'] = array();
$conf['mailer']['params'] = array('host' => '192.168.1.202');
$conf['mailer']['params'] = array('port' => '9025');
$conf['mailer']['params'] = array('auth' => 'true');
$conf['mailer']['params'] = array('username' => '***mylogin***');
$conf['mailer']['params'] = array('password' => '***mypassword***');

You keep redefining the array. Change to this:

$conf['mailer']['params'] = array('host' => '192.168.1.202','port' =>
'9025','auth' => 'true','username' => '***mylogin***','password' =>
'***mypassword***');

Or you can do this:

$conf['mailer']['params'] = array();
$conf['mailer']['params']['host'] = '192.168.1.202';
$conf['mailer']['params']['port'] = '9025';
$conf['mailer']['params']['auth'] = 'true';
$conf['mailer']['params']['username'] = '***mylogin***';
$conf['mailer']['params']['password'] = '***mypassword***';

Jeff Graves
Customer Support Engineer
Image Source, Inc.
10 Mill Street
Bellingham, MA 02019

jeff at image-src.com - Email
508.966.5200 X31 - Phone
508.966.5170 - Fax

-----Original Message-----
From: imp-bounces at lists.horde.org
[mailto:imp-bounces at lists.horde.org]On
Behalf Of Guy
Sent: Tuesday, March 25, 2003 5:16 AM
To: imp at lists.horde.org
Subject: [imp] Re: cannot send messages using smtp



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




--
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org



More information about the imp mailing list