ID:               26289
 Updated by:       [EMAIL PROTECTED]
 Reported By:      julien at touslesdrivers dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *Mail Related
 Operating System: Windows 2000 Server SP4
 PHP Version:      4.3.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

I suspect the $code is not set or not set correctly.

First of all, change http://www.domain.com/inscription.php?code=$code
to
http://www.domain.com/inscription.php?code={$code}
and always validate value of $code before using it.


Previous Comments:
------------------------------------------------------------------------

[2003-11-17 11:10:45] julien at touslesdrivers dot com

Description:
------------
Hello,

I have a problem with the mail() function. The OS is Windows 2000
Server SP4 + IIS 5.0 + MySQL + PHP 4.3.4 (ISAPI).

On my website, there is a form to subscribe to the site as a member. To
confirm the subscription, I send a mail to the person who has to click
on a link to confirm the subscription.

I use so the mail() function to send the mail as text format but there
is a random problem.

Sometimes (about 2-3 times per week) persons who receive the mail can't
confirm their subscription and forward the mail to me and I can then
constat the problem:

A little part of the body (the string "script") had been replaced by
another string ("VOID").

This problem is not dependant with the Mail client (Outlook, Netscape
etc.).

PHP 4.3.4 doesn't resolves this problem.

I am not arrived to reproduce this problem and it it seems to be
totally random. It is a very strange bug!! An idea?

Reproduce code:
---------------
The code source is:

$message = "
Bonjour,

Pour valider définitivement votre inscription comme membre, merci de
clicker sur le lien ci-dessous:
http://www.domain.com/inscription.php?code=$code
";

mail($email,"Inscription",$message,"From:
[EMAIL PROTECTED]: text/plain; charset=iso-8859-1");

Expected result:
----------------
Normally the person would see:

Bonjour,

Pour valider définitivement votre inscription comme membre, merci de
clicker sur le lien ci-dessous:
http://www.domain.com/inscription.php?code=1587

Actual result:
--------------
But some persons obtain:

Bonjour,

Pour valider définitivement votre inscription comme membre, merci de
clicker sur le lien ci-dessous:
http://www.domain.com/inVOIDion.php?code=1587


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26289&edit=1

Reply via email to