Selecting Email Address for Outgoing Emails

I am unclear from the documentation how to select which email address an outgoing email is sent from depending on the document. Any suggestions?

For example, Purchase orders get sent from purchasing@company.com, and invoices from invoices@company.com