Register failed under Windows 2003 - mail-Function (General)

by Robert @, Germany, Monday, June 23, 2008, 14:50 (5757 days ago)

The Windows implementation of mail() differs in many ways from the Unix implementation:

See:
http://de3.php.net/manual/en/function.mail.php

Search Windows Notes on this page.


(Windows only) When PHP is talking to a SMTP server directly, if a full stop is found on the start of a line, it is removed. To counter-act this, replace these occurrences with a double dot.
<?php
$text = str_replace("n.", "n..", $text);
?>

- Does anyone has a test with php and Windows 2003 Server, activate_code can`t send !?

- How can you enable / activate the users? activate_code from user is on database but no link was send?

Thanks Robert

locked
3567 views

Register failed under Windows 2003 - mail-Function

by Robert, Thursday, July 17, 2008, 11:41 (5733 days ago) @ Robert

145 views and no solution?

Does my little forum work with Windows, however the Register-Form does not send Emails.

This Script send the mails and works on this Webserver with SMTP to MS-Exchange (PHP Version 5.2.1, CGI/FastCGI).

<?php
$to = 'nobody@example-test.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example-test.com' . "rn" .
'Reply-To: webmaster@example-test.com' . "rn" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>


Is there anything to change in Form?

Thanks 4 a hint.

locked
3466 views

RSS Feed of thread