PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 21st, 2007, 10:04 AM
AikenD AikenD is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 5 AikenD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 58 sec
Reputation Power: 0
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');

Reply With Quote
  #2  
Old June 21st, 2007, 11:39 AM
wiesemann wiesemann is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 152 wiesemann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 26 m 25 sec
Reputation Power: 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.

Reply With Quote
  #3  
Old June 21st, 2007, 01:13 PM
AikenD AikenD is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 5 AikenD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 58 sec
Reputation Power: 0
Mime.php attachments failing

Quote:
Originally Posted by wiesemann
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).



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

Reply With Quote
  #4  
Old June 21st, 2007, 01:18 PM
AikenD AikenD is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 5 AikenD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 58 sec
Reputation Power: 0
[SOLVED] Mime.php attachments failing

Quote:
Originally Posted by wiesemann
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).


EXCELLENT - many thanks - that was it exactly !!

Big Smiles all round wiesemann

AikenD

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Mime.php attachments failing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway