ID: 41646 Updated by: [EMAIL PROTECTED] Reported By: rgadala at gmail dot com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Windows XP PHP Version: 5.2.3 New Comment:
It's obviously your SMTP server's limitation. Previous Comments: ------------------------------------------------------------------------ [2007-06-12 23:24:57] rgadala at gmail dot com Actually I think I figured out the problem. I changed the "\n\n"'s to "\r\n\r\n" because I am running windows and I read that that was a problem unless you are using unix, then you want to use "\n\n" Any feedback on this? ------------------------------------------------------------------------ [2007-06-12 12:31:31] [EMAIL PROTECTED] Could it be the limitation of your SMTP server? ------------------------------------------------------------------------ [2007-06-10 23:02:04] rgadala at gmail dot com Description: ------------ If I send a mail function with the body as only 'test' my email will get sent.Otherwise if I try and send a message like $body = " Thank you for requesting to leave feedback. To complete the final step, please click on this link:\n\n"; $body .= "http://www.abcdef.com/leavefeedback.php?x=12&y=12345678911234567892123456789312"; my message will not get sent. I have tried using $body = wordwrap($body, 70) before I send the email out but that still doesnt work. Reproduce code: --------------- $body = " Thank you for requesting to leave feedback. To complete the final step, please click on this link:\n\n"; $body .= "http://www.abcdef.com/leavefeedback.php?x=12&y=12345678911234567892123456789312"; $mailSent = mail([EMAIL PROTECTED], 'Leave Feedback Activation Link', $body, 'From: [EMAIL PROTECTED]'); if($mailSent){ echo ' Thank You For Requesting to leave feedback. <br />An email to '[EMAIL PROTECTED]' has been sent to you to activate your feedback. Please disregard the old one.'; } else { echo ' An email could not be sent to you due to a system error. <br /> We apologize for any inconvenience. <br />'; } Expected result: ---------------- Thank You For Requesting to leave feedback. <br />An email to [EMAIL PROTECTED] has been sent to you to activate your feedback. Please disregard the old one. (Then actually Recieving the email.) Actual result: -------------- Thank You For Requesting to leave feedback. <br />An email to [EMAIL PROTECTED] has been sent to you to activate your feedback. Please disregard the old one. (Not Recieving the email.) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41646&edit=1