Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:2500_config_apps:2600_emails:0200_outgoing_email [2025/06/11 08:35] – removed - external edit (Unknown date) 127.0.0.1 | docs:2500_config_apps:2600_emails:0200_outgoing_email [2026/07/09 05:39] (current) – aware_admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | [< | ||
| + | ====== Sending Outgoing E-mails ====== | ||
| + | |||
| + | To be able to send e-mails in **AwareIM** you need to do the following: | ||
| + | - Define " | ||
| + | - Define a notification representing the e-mail you want to send | ||
| + | - Define a '' | ||
| + | |||
| + | ===== Defining Email Transport ===== | ||
| + | First of all, you need to define whether you will be using a standard SMTP-based email transport or Microsoft Graph REST-ful service. | ||
| + | |||
| + | ==== Defining SMTP Transport ==== | ||
| + | When defining SMTP transport you can specify global SMTP settings that will be used to send any email in your application. To define such settings double click on the business space version and select the " | ||
| + | |||
| + | <callout type=" | ||
| + | Note: You need to pick a particular email provider like gmail, hotmail etc and find out actual SMTP values that these providers require | ||
| + | </ | ||
| + | |||
| + | === Outgoing Email Host === | ||
| + | The DNS name of the SMTP server that will send e-mails.\\ | ||
| + | \\ | ||
| + | === Outgoing E-mail Port === | ||
| + | The port that the SMTP server is listening on for e-mail requests.\\ | ||
| + | \\ | ||
| + | === " | ||
| + | The e-mail address that your e-mails will have as the “from” address. Note that the "from address" | ||
| + | \\ | ||
| + | === Login details === | ||
| + | If your outgoing e-mail provider requires that you log in using standard user name and password combination, | ||
| + | \\ | ||
| + | === OAuth Support === | ||
| + | Some email providers require OAuth authentication, | ||
| + | Defining OAuth settings is very similar to providing OAuth settings for REST communication see [[docs: | ||
| + | \\ | ||
| + | === SSL Support === | ||
| + | Whether the SMTP server supports the SSL protocol.\\ | ||
| + | \\ | ||
| + | === TLS Support === | ||
| + | Whether the SMTP server supports the TLS protocol.\\ | ||
| + | |||
| + | ==== Using Different SMTP Accounts When Sending E-mails ==== | ||
| + | Sometimes it may be necessary to use different SMTP settings for different users. This can be achieved by defining a special business object that represents an SMTP acount. You will need to do the following: | ||
| + | \\ | ||
| + | - Create a definition of the e-mail account object in the Configuration Tool by selecting the Business Objects node in the tree and then choosing "Add Outgoing Email Account" | ||
| + | - Define the '' | ||
| + | - At runtime this instance of the '' | ||
| + | |||
| + | ==== Sending Emails Using Microsoft Graph ==== | ||
| + | Using Microsoft Graph for sending emails does not mean that you have to replace SEND actions with REST service calls. The framework for email handling remains the same - whether you use SMPT or MS Graph. To send emails using Microsoft Graph you need to obtain your client id and secret from Microsoft, as well as tenant id and sender info. For details go to [[https:// | ||
| + | |||
| + | ==== E-mail Notification ==== | ||
| + | |||
| + | The actual e-mail sent to an external party must be a notification – see [[docs: | ||
| + | |||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | You can also optionally add the EHeaders attribute to this notification if you want to add special headers to your email. The value of this attribute should be in the following format: | ||
| + | |||
| + | < | ||
| + | |||
| + | where each header represents name and value in the standard header format: | ||
| + | |||
| + | < | ||
| + | |||
| + | The Configuration Tool provides a convenience feature that creates the skeleton of the outgoing e-mail notification with all the required attributes automatically. You can use this feature to add the notification and then change it as you wish. To create the outgoing e-mail notification: | ||
| + | |||
| + | - Right click on the " | ||
| + | - Select the "Add Outgoing E-mail Notification" | ||
| + | Using the steps described above you can add as many outgoing e-mail notifications as you like. You can then change their names, add other attributes and/or attach creation rules – see [[docs: | ||
| + | |||
| + | <callout type=" | ||
| + | Note that if you want to send an e-mail with attachments, | ||
| + | </ | ||
| + | |||
| + | ==== SEND Action | ||
| + | This action of the Rule Language sends the notification to either an intelligent business object or to a specified e-mail address, optionally using a particular e-mail account SMTP settings. Here are some examples: | ||
| + | < | ||
| + | This action will create an instance of the SignupEmail notification and send it to a Customer(s) in Context using global SMTP settings. The Customer object must have Email Communication channel defined. If there are multiple instances of the Customer object in Context, the e-mail will be sent to all of them. | ||
| + | < | ||
| + | SEND SignupEmail USING OutgoingEmailAccount</ | ||
| + | This action will send an e-mail to [email protected] using an e-mail account in Context | ||