|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-15 04:37 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ I am getting the same exact problem. I am running a Nuke 6.5 powered site and any time the php performs the mail function I get the same exact error about LF. I used that sample code for mail.php both ways........in original format and then modified it for \r\n and it worked perfectly after replacing the \n with \r\n. I know that you have told people several times to use \r\n but the entire PHP nuke 6.5 code is written with only \n whenever the mail function is used. How can I easily fix this issue without editing the source for all of my nuke web site just so sendmail works? By the way, I am running a web site on my local computer and have no domain registered. I am on a dynamic IP. So if you e-mail me on the day you want to check out my error, I will reply back with the current ip address to connect to. Thank you in advance, Steve Reproduce code: --------------- <?php mail ("shovey@frontiernet.net", "My subject", "Line 1\nLine 2\nLine 3"); ?> Expected result: ---------------- I expect The e-mail to be sent to the address on the mail line in the above code. Actual result: -------------- Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in e:\program files\apache group\apache\htdocs\mail.php on line 3