CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Sending 1.5MB attachment to 1500 people
Pages: [1]

Author Topic: Sending 1.5MB attachment to 1500 people  (Read 1374 times)

kokorocreations

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.32
  • MySQL version: 5.5.36-log
  • PHP version: 5.3.29
Sending 1.5MB attachment to 1500 people
August 13, 2009, 05:17:45 pm

Hi

We have not had any real trouble with CiviMail until now.

I am trying to send a 1.5 megabyte attachment plus a very short e-mail to about 1500 people via CiviMail.  I'm getting this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2614570 bytes) in /usr/www/users/kokoro/rmmsintdb/sites/all/modules/civicrm/packages/Net/SMTP.php on line 840

Now, my web host tells me that all PHP code is limited to 32 MB of memory usage.  Obviously, when SMTP.php tries to send this e-mail with attachment, it tries to use just a little bit more than 32 MB and the web host's PHP limitations kills things.

Is there any tuning that can be done in CiviCRM to ask it to use less memory?

We are using UAS Co-Op's CiviSMTP service, so I believe that means the message is only sent once to CiviSMTP, not 1,500 times.

Any ideas for how we can reduce CiviCRM's memory usage or otherwise get this e-mail out the door?

Thanks very much

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Sending 1.5MB attachment to 1500 people
August 13, 2009, 05:58:41 pm

actually it is sent 1500 times to civismtp, civismtp is just another smtp server (from a civimail perspective). Though it should not consume a lot of additional memory / message

if you are using drupal, you might want to turn off all non-essential models and hope that fixes it. Otherwise try reducing the attachment size and see if that helps

in the long run, you should investigate getting a better hosting provider

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kokorocreations

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.32
  • MySQL version: 5.5.36-log
  • PHP version: 5.3.29
Re: Sending 1.5MB attachment to 1500 people
August 13, 2009, 06:04:03 pm
Thank you.

kokorocreations

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.32
  • MySQL version: 5.5.36-log
  • PHP version: 5.3.29
Re: Sending 1.5MB attachment to 1500 people
August 13, 2009, 06:12:49 pm
Just to provide an update in case anyone else has this problem: turning off most drupal modules worked and the e-mail was able to go out.  I didn't have very many modules installed, but I guess just eking out that little bit more memory was all it took.

Thanks lobo for great & timely help.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Sending 1.5MB attachment to 1500 people

This forum was archived on 2017-11-26.