Resolve recipients and delivery methods
Before a document can be mailed, the app has to know where it goes and how it travels. The delivery method is kept per customer, and the addresses come from the customer card, a contact, or one of the app's address books. The email options of each user decide which of these sources are used.
Before you start
- The customers must exist in Business Central with their addresses, here 10000 Adatum Corporation to 10004 Alpine Ski House.
- The mailing setup must be done; see Set up document mailing.
- You need the permission set QUADO All.
Keep a delivery method for a customer
A customer can be mailed, printed or handled as a file, whatever the company setup says. The row for the customer wins over the company setup.
- Open QUADO Delivery Methods.
- Choose New.
- In Owner No., enter the customer, here 10000.
- In Delivery Method, choose Email.
- Choose Save.
- The row is in the list, and the customer's documents now travel by email.

Keep a recipient's addresses
An address book entry is one address for one owner: a customer, a vendor, a contact or a user. The entry says which kind of address it is and how it is used.
- Open QUADO Address Book.
- Choose New.
- In Owner Type, choose Customer, and in Owner No. enter 10000.
- In Address Type, choose To.
- In Address, enter [email protected].
- In Description, enter the words you will recognise, here Adatum invoices.
- Choose Save.

Tip: Keep one To entry and, if the customer wants a copy, one Cc entry per customer. A Bcc entry is used for addresses that the other recipients should not see.
Fix an address the app refuses
An address that is not a mail address stops the message before it is queued. The app says so and keeps the message so you can correct it.
- Open QUADO Email Review.
- In To, enter adatum.invoices, an address without the at sign and the domain.
- In Subject, enter Invoice 103001.
- Choose Queue.
- The app refuses with a message that the address is not a valid mail address, and nothing is queued.
- Correct To to [email protected] and choose Queue again.

Take an address from a contact
When a document goes to a person rather than to the company, the address comes from the contact. The app can copy it into the entry.
- Open QUADO Address Book and choose New.
- In Owner Type, choose Contact, and in Owner No. enter the contact, here the sales manager of Adatum.
- In Address Type, choose To.
- Choose Address from Contact; the app fills in the address the contact carries.
- Check the address, add a Description, and choose Save.

Choose the address book and the ship-to address
The email options decide which address books a user is offered and whether a ship-to address may be used.
- Open QUADO Email Options.
- In the General group, turn the address sources on that the user may use: the customer card, the contact and the address books.
- Turn the use of the ship-to address on when documents may go to a warehouse or another delivery address.
- Choose Save.

Note: The ship-to address is the address of the location the goods go to, such as WH Warehouse or DC Distribution Center. Turn it on only for the users who really mail to those locations.
Pick recipients from the address books
The address book picker offers three books. Each one holds addresses of a different kind, and the user chooses which to search.
- Open QUADO Address Book Picker.
- Choose Recipient Address Book to search the addresses kept for the recipient.
- Choose Document Address Book to search the addresses kept for the document.
- Choose Personal Address Book to search the user's own addresses.
- Pick the address and close the picker; the address is used in the message.

Use a contact's address for a customer
A customer's documents often go to a person at the customer. The email options decide whether the contact's address is used before the customer's own address.
- Open QUADO Email Options.
- Check that User ID shows the user, here IMPORT-CONTOSO.
- In the General group, turn the contact as an address source on.
- Choose Save.
- Mail a document for 10000 Adatum Corporation and check that the address of the contact is used.

Example
Adatum Corporation (10000) wants its invoices by mail, to its accounts team, with a copy to the auditor. The accountant opens QUADO Delivery Methods, creates the row for 10000 with Delivery Method Email, and saves. She then opens QUADO Address Book and adds [email protected] as the To address and [email protected] as a Cc address for the same customer. In QUADO Email Options she turns the contact as an address source on, so the invoice goes to the person named on the customer's contact.
What happens
The app first looks for a delivery method row for the customer; if there is none, the company setup applies. Then it searches the addresses in the order the rule gives and uses the first address it finds for the address type it needs. An address that is not a valid mail address stops the message before it is queued.
If something goes wrong
- The message is refused because of the address. The address has no at sign or no domain. Correct it in To or in the address book and queue again.
- The document is printed instead of mailed. A delivery method row for the customer says Printer. Delete the row or set it to Email.
- The address of the wrong person is used. The search order on the rule finds the card before the contact. Change Deliver-to Search Order on the rule.
- No address is found. The customer has neither an address on the card nor an entry in the address book. Add one of the two.
