#41646 [Fbk->Opn]: mail function will only send when i have a small body
| From: | rgadala at gmail dot com | Date: | Tue, 12 Jun 2007 23:24:57 +0000 |
| Subject: | #41646 [Fbk->Opn]: mail function will only send when i have a small body | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113726@lists.php.net to get a copy of this message | ||
ID: 41646
User updated by: rgadala at gmail dot com
Reported By: rgadala at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Mail related
Operating System: Windows XP
PHP Version: 5.2.3
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2007-06-12 12:31:31] iliaa@php.net
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(abc@aol.com,
'Leave Feedback Activation Link',
$body, 'From: abcdefg@aol.com');
if($mailSent){
echo ' Thank You For Requesting to leave feedback. <br />An
email to '.abc@aol.com.' 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
abc@aol.com. 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
abc@aol.com. 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