Jump to content

A Way To Disable Pdf Attachment In Invoice Emails


fortscan

Recommended Posts

This is critical for many companies who don't want to fill their customer's inbox space with a PDF for every invoice notification. Even when optimized and without embedding fonts, the emails end up with an average weight of 70-100k.

 

* It can overload the SMTP queue when sending large amount of notifications,

 

* It forces the customer to actually download an attachment

 

* It may even put the relaying SMTP IPs in danger of being blacklisted or SMTP-filtered because of large number of identical attachment parameters (i.e. 2k emails in 1h, all of them with a 100k attachment)

 

* In some cases it can interfere with privacy policies in the sense that customers are receiving sensitive/confidential information over an unsecure channel like email, instead of having to first authenticate in the billing system over SSL to be able to access such information

 

A simpler approach can be more useful: let the customer know that an invoice has been generated (plain text email), and IF they want to look at the PDF, ask them to login to the billing system.

 

If this is not a current feature, could you at least suggest a workaround, even if it implies hacking/modifying part of the includes or the email generation class ?

 

Thanks.

Link to comment
Share on other sites

Good suggestion!

 

You'll have to get your hands a little dirty, but you can disable sending attachments in invoice delivery emails by commenting out lines 80 - 85 in /components/invoice_delivery/invoice_delivery.php

 

                $attachments = array(
                   /*
                    array(
                        'path' => $inv_path,
                        'name' => $attachment_name,
                        'encoding' => "base64",
                        'type' => $this->company_settings['inv_mimetype']
                    )
                   */
                );
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...