#41646 [NEW]: mail function will only send when i have a small body
| From: | rgadala at gmail dot com | Date: | Sun, 10 Jun 2007 23:02:04 +0000 |
| Subject: | #41646 [NEW]: mail function will only send when i have a small body | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-113626@lists.php.net to get a copy of this message | ||
From: rgadala at gmail dot com
Operating system: Windows XP
PHP version: 5.2.3
PHP Bug Type: Mail related
Bug description: mail function will only send when i have a small body
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 bug report at http://bugs.php.net/?id=41646&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41646&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41646&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41646&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41646&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41646&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41646&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41646&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41646&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41646&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41646&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41646&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41646&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41646&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41646&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41646&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41646&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41646&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41646&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41646&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41646&r=mysqlcfg