Hello,

I'm running Drupal 4.7.3 on a windows server with php 5.0.5
I followed the instructions to place smtp.module in the drupal modules directory.
When I go to administer / modules - the page is blank.
If I remove the smtp.module file from the modules directory and refresh, the administer / modules page loads correctly.

I ran php -l smpt.module to see if there were any syntax errors but it was fine.

Any idea on what I'm doing wrong or why it's not workign for me?

Thanks!

Comments

majomajomajo’s picture

Same here.

Windows 2003, php 5, Apache 4.7.2

bluecobalt’s picture

Increase PHP's memory limit:

http://drupal.org/node/31819

majomajomajo’s picture

Hmm, in my php-error-log:
Fatal error: Cannot redeclare user_mail_wrapper() in C:\Apache\Apache2\htdocs\drupal\sites\www.digitalk.se\modules\smtp\smtp.module on line 132

So by removing devel-module (that also has the function user_mail_wrapper()) the error went away.

Any idea for a better fix?

vcosta’s picture

Hello all,

First of all thank you for all the great support you've been giving so far to thousands of us across the world and for the conception of such great piece of coding the whole Drupal is.

Secondly, I am running Drupal 4.7.4 on Apache 2.0.55 and php 5.1.4 and being a newbie on PHP, i managed quite successfully to set up drupal. Seems that my only trouble is the SMTP that won't work.

I've tweaked and went through the different methods, problems and solutions posted on this site and now, after installing the SMTP module and activating it, the test email was sent successfully (the one on the smtp settings page?) , however, when a user tries to register, that email that Drupal sends, never reaches its destiny because of an error.

I've configured the php.ini [mail function], installed the smtp.module, class.smtp.inc and i am at a stage where i get an error related to the smtp.inc which reads:

Fatal error: Cannot redeclare user_mail_wrapper() (previously declared in D:\Data\Website\drupal\modules\smtp\smtp.module:132) in D:\Data\Website\drupal\includes\smtp.inc on line 36

The funny thing is that it seems that the system is working fine as the log claims that the user was created successfully.

Type user
Date Friday, November 17, 2006 - 05:29
User Guest
Location http://192.168.0.100/drupal/?q=user/register
Referrer http://192.168.0.100/drupal/?q=user/register
Message New user: tested .
Severity notice
Hostname 192.168.0.63

but no email message is sent.

All this problem started because my smtp (managed by an ISP) wouldn't forward external email, so i started with the eror 550 saying it could not forward mail outside the domain and it was not a valid gateway.

Please, does anyone know why this is happening?

Thanks in advance,

Victor

LukeLast’s picture

Try getting rid of smtp.inc

smk-ka’s picture

Status: Active » Fixed

Seems like removing smtp.inc does the trick.
--
Stefan Kudwien
http://www.unleashedmind.com

Anonymous’s picture

Status: Fixed » Closed (fixed)