• mwolter

    (@mwolter)


    Hello,
    Is it possible for the attachments to be the original file types and not zipped? We have several systems that integrate via email and they cannot decompress the zip file natively. Would still like the images to be resized but not zipped.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mwolter

    (@mwolter)

    Thank you for the new version 2.8.0, appreciate you working on this so quickly!

    I believe I have found a bug. My goal is to send individual attachments, unzipped and have the attachments deleted after a notification is successfully sent.

    When Delete files after notification sent is checked and Zip uploads is unchecked, no attachments are sent.

    Looking into it further:

    If Zip uploads and Delete files after notification sent are checked a zipped file is sent.

    If Zip uploads and “Delete files after notification sent” are unchecked, the individual files are attached to the notification.

    So after quickly looking at the code I think the Delete files after notification sent is deleting the original attachments before they are sent when Zip uploads is unchecked.

    An idea might be to separate the Delete files after notification sent into a different function using the hook add_action ‘gform_after_email’ and in that function using if( $is_success ) { then delete uploaded files, thumbnails and zip files if present }.

    • This reply was modified 7 years ago by mwolter.

    I’m running into the same issue, except the image files aren’t attached whether Zip uploads is checked or not. It seems they are deleted before they can be attached, producing the following error in the Gravity Forms log:

    2018-03-12 17:26:06.566267 – DEBUG –> GFCommon::send_email(): PHPMailer class returned an error message: Could not access file: /path/to/file/image.png

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email Attachments not Zipped’ is closed to new replies.