Bug #18544 Updated: Rogue > added to variable on mail()
ID: 18544
Updated by: derick@php.net
Reported By: cathy@injuryfree.com
Status: Bogus
Bug Type: Variables related
Operating System: Linux RedHat 7.2
PHP Version: 4.1.2
New Comment:
Only works without the : :)
From
Previous Comments:
------------------------------------------------------------------------
[2002-07-24 13:52:12] derick@php.net
This is actually not a PHP bug, but a 'feature' of the mbox mailbox
format as used by pine.
All lines with From in the text are prepended with a > to that it still
can find breaks between messages.
See this (I added no >)
From:
Derick
------------------------------------------------------------------------
[2002-07-24 13:50:04] cynic@php.net
read up about the mailbox format. (it's not PHP that does that)
------------------------------------------------------------------------
[2002-07-24 13:28:50] cathy@injuryfree.com
With this script:
<?php
$mail2 = "Greetings,\n\n";
$mail2 .= "Your employer has requested that you take an ergonomic
survey. This survey will help Some Company, Inc., to figure out how to
better shape your work environment so it is more comfortable for you.
You can take this survey online, at your earliest convenience. (Please
note that we cannot process orders until all surveys are
returned.)\n\n";
$mail2 .= "To take your survey, click the link below. If you have
difficulties, log in manually using the provided username and
password.\n\n";
$mail2 .= "Some kind of url\n\n";
$mail2 .= "Username: username\n";
$mail2 .= "Password: password\n\n";
$mail2 .= "From the page above you can choose to take the survey
online, or download and print it out to fax in to our offices.\n\n";
$mail2 .= "If you have any trouble logging in, please try to copy and
paste your username and password directly from this email. If that
still doesn't work, please feel free to call or write for
assistance.\n\n";
$mail2 .= "Thank you for your participation! We look forward to working
with you.\n\n";
$mail2 .= "Some User\nSome Company, Inc.";
echo $mail2;
mail('email address','test mail problem',$mail2,'From: someemail
address');
?>
If you reproduce that script you will see that on the line "From the
page above..." it inserts a > before "From".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18544&edit=1
Thread (6 messages)