Bug #18544 [Com]: Rogue > added to variable on mail()

From: Date: Thu, 10 Aug 2023 12:26:35 +0000
Subject: Bug #18544 [Com]: Rogue > added to variable on mail()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245150@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=18544&edit=1

 ID:                 18544
 Comment by:         toddjonespx at gmail dot com
 Reported by:        cathy at injuryfree dot com
 Summary:            Rogue > added to variable on mail()
 Status:             Not a bug
 Type:               Bug
 Package:            Variables related
 Operating System:   Linux RedHat 7.2
 PHP Version:        4.1.2
 Block user comment: N
 Private report:     N

 New Comment:

Yes, Customer surveys help know the customers' opinions about the store.

https://github.com.php)(https://lowescomsurvey.co/)


Previous Comments:
------------------------------------------------------------------------
[2002-07-24 13:59:22] cathy at injuryfree dot com

OK. Changed my wording and it fixed it. What a weird "bug"!

------------------------------------------------------------------------
[2002-07-24 13:53:01] derick@php.net

Only works without the : :)
From

------------------------------------------------------------------------
[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 at injuryfree dot 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 https://bugs.php.net/bug.php?id=18544&edit=1


Thread (6 messages)

« previous php.bugs (#245150) next »