php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22566 imap_mail hang the script
Submitted: 2003-03-06 01:22 UTC Modified: 2003-07-16 01:03 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: lmstudio at 1system dot ru Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.3.3RC2-dev OS: Windows 2000 Pro
Private report: No CVE-ID: None
 [2003-03-06 01:22 UTC] lmstudio at 1system dot ru
I try to send email from my PHP script with imap_mail function. My mail consists a simple message part and attachment as ~250KB file. I compose mail header with imap_compose function, here it's output:

From: lmstudio@1system.ru
Reply-To: lmstudio@1system.ru
MIME-Version: 1.0
Content-Type: MULTIPART/mixed; BOUNDARY="90-31600-1046934660=:2764"
X-Mailer: PHP4.3.1

--90-31600-1046934660=:2764
Content-Type: TEXT/plain; CHARSET=Windows-1251

Hello !!!
--90-31600-1046934660=:2764
Content-Type: IMAGE/gif
Content-Transfer-Encoding: BASE64
Content-Description: img.gif
Content-Disposition: attachment; filename="img.gif"

R0lGODlhTwKeBPcAAP////P1+d7v/9zv99bv/+bm/97m/97m99bm/9bm997e
/97e98nn/tbe/9fg7Nbe987e/87e99nW/9bW99bW78He/c7W/9bW5M7W987W
787W5sXW987W3sXW787O/9vH/8XW5s7O97vW/87O77rW98XO/87N5sXO98/P
... ~250KB ...
99mbRu95/3vgM2f4xB++8IGP/N4rP/jFZ77vnR/940s/+dRfvvWbP33tV3/7
1+9+9rkffu+LH/zjN3/50TMP/e+rn/zsP7/702/89sv//fSP//PtD3/955//
+Pc/9vfv/9av/wCQAAdQAOeP+YIgIAAAOw==

--90-31600-1046934660=:2764--

And imap_mail hang the script.
Help, please.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-06 04:18 UTC] lmstudio at 1system dot ru
The whole content for the 4-th param. for imap_mail can be found at http://www.lmstudio.arctel.ru/mail_output.html
 [2003-03-11 20:17 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-07-12 23:47 UTC] sniper@php.net
Does mail() work..?

 [2003-07-14 05:02 UTC] lmstudio at 1system dot ru
I'll try to use mail function.
 [2003-07-14 05:17 UTC] lmstudio at 1system dot ru
In new version (4.3.3-dev) problem is still remain: mail function can't send mail with big attachments (for example 250Kb)
 [2003-07-14 12:30 UTC] sniper@php.net
Please provide a short but complete example script that uses mail() function.

 [2003-07-15 05:07 UTC] lmstudio at 1system dot ru
mail ('lmstudio@1system.ru',
      'Test',
      '',
'From: =?Windows-1251?B?TmV3IHNpdGU=?= <lmstudio@1system.ru>
Return-Path: =?Windows-1251?B?TmV3IHNpdGU=?= <lmstudio@1system.ru>
X-Mailer: PHP4.3.3-dev
MIME-Version: 1.0
Content-Type: multipart/mixed;
        boundary="LM-STUDIO-7bf481a302d8e208be9453b4635bee26"
Content-Transfer-Encoding: 7bit

This is a MIME Encoded Message

--LM-STUDIO-7bf481a302d8e208be9453b4635bee26
Content-Type: text/plain; charset=Windows-1251
Content-Transfer-Encoding: quoted-printable
Hello, world!!!

--LM-STUDIO-7bf481a302d8e208be9453b4635bee26
Content-Type: application/octet-stream;
        name="test.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="test.gif"

R0lGODlhTwKeBPcAAP////P1+d7v/9zv99bv/+bm/97m/97m99bm/9bm997e/97e98nn/tbe/9fg
7Nbe987e/87e99nW/9bW99bW78He/c7W/9bW5M7W987W787W5sXW987W3sXW787O/9vH/8XW5s7O
97vW/87O77rW98XO/87N5sXO98/P0s7N3sXO78XO5r3O987Ss8XO3sPYrcXO1ta9+b3O4MXF97PO
987RmM6/+MXF773F/8XF5r3F98XNtcXF3r3F78XNrcXF1r3F5sPHyLXF97XUpb3F3se94c6197rF
1taw+b2997DG56vF972978W297295r3Gr7293rW977G997W95r3Fpc6s98K6zL661rW93q3LpbW9
1rXFpam97sWt973FjKS997W176290bW15r29pLW13tC1lK2177W4ya215rW9pby3srSu96213sWk

... about 250Kb ...

r+Fh8pPvJubYszgAMK7xmw+d6EU3+tGL3V8OALw5yNHwRZEedalPnepV53TYei4/Vwvd6l33+tfB
PvJV69znXFtussOedrWvne315kfHa6huB+wD7W23+93xnnde7yMIWpvxz/UeeMEPnvCVDkKsy154
xS+e8Y1PvOMhH3nJh31W4CDF5TGfec1vnvOd9/znQR960Y+e9KU3/elRn3rVr571rXf962Efe9nP
nva1t/3rwWEMK2SP99mbRu95/3vgM2f4xB++8IGP/N4rP/jFZ77vnR/940s/+dRfvvWbP33tV3/7
1+9+9rkffu+LH/zjN3/50TMP/e+rn/zsP7/702/89sv//fSP//PtD3/955//+Pc/9vfv/9av/wCQ
AAdQAOeP+YIgIAAAOw==

--LM-STUDIO-7bf481a302d8e208be9453b4635bee26--');
 [2003-07-15 13:37 UTC] sniper@php.net
Your code is borked, ask support elsewhere.

 [2003-07-16 01:03 UTC] lmstudio at 1system dot ru
it's worked with attachment size about 250Kb?
 [2021-04-06 10:19 UTC] git@php.net
Automatic comment on behalf of 
Revision: https://github.com/php/pecl-system-expect/commit/333c22ba4b6198bb918da223cb1be618d17b461e
Log: Fixed Bug #22566 (Can't set ini variable)
 [2021-04-06 10:19 UTC] git@php.net
-Status: Not a bug +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC