Send an email from a specific email address using Business Central AL Code
- Josh
- Jan 21
- 1 min read
Sending emails from Business Central is always a requirement from Business Central. Within Email Accounts you could have several email accounts setup so this blog will help you define the email account to send from.
For this example we will send a posted sales invoice from a specific shared mailbox.
Lets start by adding new fields to the Sales & Receivables setup:
We need 2 fields, 1 to store the email address and 1 to store the guid which is used later when we try to send:

Add only Invoice Sender Address field to the Sales & Receivables Setup page:

Create a new codeunit which we will use to send an email

This is the basic framework to send an email from a specific email account defined on a setup table. The next blog post we will expand on this to include an email body and attach a pdf of the posted sales Invoice.
I hope this helps you send an email from Business Central using a specific email account. Please reach out if you have any questions. Part 2 of this will expand on the email body and an attachment.



Comments