How To: Setup Automatic Email Addresses for Document Types
Users can decide which specific email address to send PDF reports to by recording an email address against a particular document type. Multiple email addresses can be set up using this method enabling Khaos Control to send the document to multiple email addresses.
The only documents this is enabled for are:
- Sales Invoice
- Sales Delivery Note
- Statement
- Payment Remittance
- Purchase Order
- Return
Note: if more than one e-mail address is set against the 'Document Type' then when documents are sent from print previews (E-mail this doc option), Khaos Control will send the document to the multiple e-mail addresses rather than be limited to one e-mail per document. This only applies to when the user manually sends e-mails from the print preview of a report and not automatically from the Email Manager.
To add an email contact preference address
- Open either a Customer or a Supplier screen .
- Load the required customer or supplier record.
- In the Options area of the
[ Customer | General ]
tab, click on the to toggle between the basic Options panel and the Additional Options panel. - Press the button to open the Company Email Addresses dialog.
- Press F3 or click to add a new item.
- In the Document Type column use the F4 key to select the document type from the list (e.g. "Sales Invoice").
- Enter the email address in the 'Email Address' column.
- Ensure the 'Always Print' checkbox is NOT ticked if you wish to send this document type by email.
Notes:- Ticking the Always Print checkbox stops the affected invoice from being emailed. The invoice can be printed once the button in the report is used by the user at the end of the process.
- The Always Email checkbox is only editable when the Always Print checkbox is ticked.
- By default the Always Email checkbox is not ticked, and is ignored if the Always Print checkbox is unticked, therefore the system will send emails for the selected document type.
- If both Always Email and Always Print are ticked then the document will be included in both email and print runs for the customer.
- Despite only having Always Print ticked against an email address, when using trigger rules or the button an email will be sent.
- Repeat the previous step for any other document types you wish to specify email addresses for.
- Press the OK button to confirm (or press Esc to cancel).
Notes:
- The setup for this is separate to the existing email addresses held against the address tab in the customer / supplier screen.
- If any of the above values are not defined against a Company, then the system will use the standard rules to decide which email address to send the document to.
- If the Always Print document option is ticked against the Sales Invoice this is ignored by the Email Manager.
Data Query
The following data query lists all customers/suppliers that have document-related email addresses:
SELECT co.company_code, co.company_name , CASE co.supplier WHEN 0 THEN 'Customer' WHEN -1 THEN 'Supplier' ELSE 'Unknown' END AS cust_supp , ed.short_desc AS doc_type , em.email_address, em.always_print FROM email_addresses AS em INNER JOIN email_doctypes AS ed ON em.edoctype_id = ed.edoctype_id INNER JOIN company AS co ON em.company_id = co.company_id ORDER BY co.company_code /************************************************************ List companies having document-related email addresses. This data query is provided as a teaching aid and is not covered by your support agreement. 13-Oct-2010 Created (GKS) ************************************************************/
Data Query is an Advanced User feature. |