|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mime.php attachments failing
Hi guys !
Very new to PHP, hardcore DB though :-) I am having a problem sending attachments in an email (PEAR MIME) I have a requirement to send emails with 6 attachments (always the same 6 attachments) When I send 3 attachments, everything is fine, but more than 3 cause the page to return blank. The mail::factory has 4 attachments, unless I comment out the 4th attachment, nothing will work ! I'm going crazy here, any help greatly appreciated :-(( // Add more files $status = $mime->addAttachment( 'PICT8461.JPG', 'image/jpeg'); $status = $mime->addAttachment( 'PICT8462.JPG', 'image/jpeg'); $status = $mime->addAttachment( 'PICT8463.JPG', 'image/jpeg'); // $status = $mime->addAttachment( 'PICT8464.JPG', 'image/jpeg'); |
|
#2
|
|||
|
|||
|
Is this maybe a memory_limit issue? I.e. the available memory could be too small to add more images than the first three images.
To verify this, you could either extend the memory_limit setting to a higher value or enable the error displaying (if not already done). Adding PEAR::setErrorHandling(PEAR_ERROR_DIE); at the beginning of your script (after including the Mail class) might also help, if the other hints don't help yet. |
|
#3
|
|||
|
|||
|
Mime.php attachments failing
Quote:
I think you may be correct - I attached 6 small text files and it went without a problem - will read up on memory_usage and edit the php.ini file if appropriate - many thanks for the tip AikenD |
|
#4
|
|||
|
|||
|
[SOLVED] Mime.php attachments failing
Quote:
EXCELLENT - many thanks - that was it exactly !! Big Smiles all round wiesemann AikenD |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Mime.php attachments failing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|