I have Drupal 4.6.3 installed on Windows XP Pro.
Using PHP 5.0.4, Apache 2.0.54, MySQL 4.1.7.
I also installed IIS for the SMTP Server.
IIS Default site runs on port 8080, and SMTP on 25

My php.ini settings:
SMTP =localhost
smtp_port = 25
sendmail_from = WebAdmin@localhost.com

I can successfully Telnet to SMTP and send messages.

I have a PHP error in the log files.

Here are the details:
Type php
Date Friday, October 21, 2005 - 10:22
User Anonymous
Location /drupal/?q=user/register
Message mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Program Files\Apache Group\Apache2\www\drupal\modules\user.module on line 374.
Severity error
Hostname 127.0.0.1

I have looked at user.module on line 374, and it reads:
);

I am not sure why I am getting this error.

Any thoughts/suggestions?

Comments

sepeck’s picture

Way late answer, but it means you haven't assigned a valid sending email addres to your site in admin >> settings.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

barryman9000’s picture

I'm having the exact problem. If I'm running Apache2 on Win2003, where are the admin>>settings? Is that in the config file, or the ini?

sepeck’s picture

Well, I am assuming you have a working SMTP server you can relay messages through.......

As to where to set your sites sending email address? Here you go It's a good section to go through as well. I ordered that section roughly the way I start at the top and work my way down configuring a site right after installation.

The error seems to indicate that it is making it to the SMTP server and the SMTP server is rejecting it.

For me, to get the rough framework (no additional modules other than image and phptemplate and a phptemplate base theme) generally runs about two hours.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

jamief’s picture

I have heard, (and that is why I stumbled in here), and am trying to confirm that:

Windows IIS5/6 does not support outgoing SMTP that has, as is usually the case with a number of php (mail) options:
"Name" BRACKET< email@someplace.com >BRACKET. It requires JUST the email address, so the work around is:

remove the name tag on outgoing messages.

As I said, Im trying to verify this, but the change worked for me.

Rythmist’s picture

I use the following on Win32 machines in the PHP.ini file:

SMTP = smtp.yourserver.com
sendmail_from = an_address@yourserver.com

Rythmist

MuayThai-1’s picture

what to use in a remote environment?