Email .. Windows Server .. ? (Features)

by Auge, Monday, February 23, 2009, 15:56 (5502 days ago) @ Vinayy

Hello

As first: I am not a Windows Server user. (I am (in most cases) not a Windows client user too, but that is another story. ;-) )

I read the Note:
Note: The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).
Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.
As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA.

My Windows server can send emails through (and these get delivered):

<?php
if(mail('email@my_domain.com','test subject','test message')){
echo('ok');
}
else{
echo('not ok');
}
?>

(for above, the sender is the default email ID of the server)

Ok, you can send emails through PHP.

I guess this means the issue is Not of MTA (at my server).

It seems so.

Now you have to check the differences in the PHP source code of your implementation and the one of the forum script (I don't know the sources).

This note:
Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.

... sounds to me, that the named headers were ignored but causes no errors. (Maybe someone could give us a hint?)

The third note:
As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA.

... could be the reason if this form is used in the script.

Tschö, Auge


Complete thread:

 RSS Feed of thread