hi,
i'm trying to setup drupal 4.7b2 to use an external SMTP server on another box than my drupal server, on the same lan.
reading abt setup of drupal to use external SMTP server @:
http://drupal.org/node/28696
i DL'd into .../sites/drupal/includes:
"http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/tricks/smt..."
"http://www.lemure.net/~chuck/openbsd_help/class.smtp.inc"
then, editing:
======================================================
${EDITOR} .../sites/drupal/includes/smtp.inc
@7
--- $params['host'] = ini_get('SMTP');
+++ $params['host'] = "mail.testdomain.net";
@14
// Username for authentication
//$params['user'] = 'testuser';
// Password for authentication
//$params['pass'] = 'testuser';
+++ $params['user'] = 'hostmaster';
+++ $params['pass'] = 'my_password';
======================================================
and, editing in settings.php because, it seems, conf.php has been replaced ...
======================================================
${EDITOR} .../sites/drupal/sites/drupal.testdomain.net/settings.php
+++ $conf = array(
+++ 'smtp_library' => 'includes/smtp.inc'
+++ );
======================================================
if i, then, login and request a password to be sent to my account, i see in Apache log:
[Sat Jan 07 13:36:36 2006] [error] [client 172.30.11.6] PHP Fatal error: Using $this when not in object context in .../sites/drupal/includes/class.smtp.inc on line 78, referer: http://drupal.testdomain.net/?q=user/password