This is as a followup to the post in the troubleshooting section at http://drupal.org/node/29888 and is regarding setting up external SMTP server using smtp.class files.
I did everything described in that thread:
- downloaded to the 'includes' directory files 'smtp.inc' and 'class.smth.inc'
- modified smtp.inc file to include all correct user credentials and auth info (I'm using an external, my ISP provider, SMTP server)
- modified settings.php to include smtp.inc file
I tested the mailer by 'requesting new password'. Got the following line output to apache stderr:
------------
PHP Fatal error: Using $this when not in object context in C:\\Tools\\drupal-4.6.5\\includes\\class.smtp.inc on line 78, referer: http://localhost/?q=user/password
------------
My environment as follows (everything is installed on the same box):
- OS: Windows XP, SP2
- PHP: php-5.1.1-Win32
- WebServer: Apache 2.0.52
- DB: MySQL Ver 14.7 Distrib 4.1.12a
- Drupal ver 4.6.5
I took php.ini-recommended as my php.ini file. So these two variables are turned OFF:
- register_globals=Off
- allow_call_time_pass_reference = Off
I also tried to turned them both on, but that didn't make any difference.
Any ideas what might be wrong?.. In the meantime I'll try to downgrade my PHP installation to 5.0.x.
PS: if this won't work, can anyone please point me to the instructions on setting up 'phpmailer'?