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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sending large email attachment sizes....
Pages: [1]

Author Topic: Sending large email attachment sizes....  (Read 2493 times)

TheEdge

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.3.4
  • MySQL version: 5.6.17
  • PHP version: 5.4.32
Sending large email attachment sizes....
December 12, 2011, 01:03:34 am
Hi,

- CiviCRM 4.0.7
- J! 1.7.3

I have a need to allow users to send 10MB attachments when selecting "Send Email" from the actions button for a contact. I have the following PHP settings in effect:

Code: [Select]
upload_max_filesize 12M
max_execution_time 30
max_input_time 120

The 120 seconds is more than enough time to get a 10MB file uploaded. I can see the file getting uploaded and complete in that time after clicking the "Send Email" button, but the resulting page at:

Code: [Select]
http://...../administrator/?option=com_civicrm&task=civicrm/activity/email/add
ends up blank.

Any suggestions?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Sending large email attachment sizes....
December 12, 2011, 01:11:06 am
Sending big attachment is a terrible practice: every email (every recipient) has that attachment that is base64 encoded (about 1/3 bigger than the original). That's taking a lot of memory and time to send each of them.

It's quickly a big toll on your server and more than the allowed limit probably.

Beside, 10Mb are going to be too big for some/most of your recipients mail servers anyway.

I would suggest you to upload them on your server and send a link to the file.

as for your config, you need to increase as well the post variable size as well.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

TheEdge

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.3.4
  • MySQL version: 5.6.17
  • PHP version: 5.4.32
Re: Sending large email attachment sizes....
January 15, 2012, 01:06:57 am
Quote from: xavier on December 12, 2011, 01:11:06 am
Sending big attachment is a terrible practice: every email (every recipient) has that attachment that is base64 encoded (about 1/3 bigger than the original). That's taking a lot of memory and time to send each of them.

It's quickly a big toll on your server and more than the allowed limit probably.

Beside, 10Mb are going to be too big for some/most of your recipients mail servers anyway.

I would suggest you to upload them on your server and send a link to the file.

as for your config, you need to increase as well the post variable size as well.
I share your concerns. All of which I had already explained to the client. However he is adamant and as it is his infrastructure he will only have himself to blame. So now having set:

Code: [Select]
php_value upload_max_filesize  12M
php_value max_input_time 120
php_value post_max_size 20M

I still get the red error of "File size should be less than 2 MByte(s)" after attempting to attach a file of 10MB. Has anyone got any other ideas? Seems to me PHP is configured correctly.

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 large email attachment sizes....
January 15, 2012, 07:34:07 am

You need to increase the file size attachment in CiviCRM also. I dont remember why we use a different setting from PHP :(

http://drupal.demo.civicrm.org/civicrm/admin/setting/misc?reset=1

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sending large email attachment sizes....

This forum was archived on 2017-11-26.