php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18544 Rogue > added to variable on mail()
Submitted: 2002-07-24 13:28 UTC Modified: 2002-07-24 13:59 UTC
From: cathy at injuryfree dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.1.2 OS: Linux RedHat 7.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cathy at injuryfree dot com
New email:
PHP Version: OS:

 

 [2002-07-24 13:28 UTC] 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". 

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-24 13:50 UTC] cynic@php.net
read up about the mailbox format. (it's not PHP that does that)

 [2002-07-24 13:52 UTC] 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:53 UTC] derick@php.net
Only works without the : :)
From
 [2002-07-24 13:59 UTC] cathy at injuryfree dot com
OK. Changed my wording and it fixed it. What a weird "bug"!
 [2023-08-10 12:26 UTC] toddjonespx at gmail dot com
Yes, Customer surveys help know the customers' opinions about the store.

https://github.com.php)(https://lowescomsurvey.co/)
 [2024-04-06 06:37 UTC] telltims2023 at gmail dot com
The following pull request has been associated:

Patch Name: Use AX_CHECK_COMPILE_FLAG instead of PHP_CHECK_GCC_ARG
On GitHub:  https://github.com/php/pecl-search_engine-solr/pull/74
Patch:      https://github.com/php/pecl-search_engine-solr/pull/74.patch
 [2024-04-06 06:56 UTC] telltims2023 at gmail dot com
The following pull request has been associated:

Patch Name: Convert curl-getinfo() constant list to table
On GitHub:  https://github.com/php/doc-tr/pull/29
Patch:      https://github.com/php/doc-tr/pull/29.patch
 [2024-04-07 15:00 UTC] laxman dot thotagoud at gmail dot com
Amazing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC