You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

On this Page:
In a static e-mail, all mail parameters (recipients, sender, subject and body) are defined directly in tagged values of the action node, which is assigned the stereotype <<SMTPAdapter>>. Executing this e-mail service on the Bridge with static parameters will always send the same e-mail to the same recipients.

Example File (Builder project Add-ons/EMail):

<your example path>\Add-ons\EMail\uml\smtpEmailing.xml

SMTP Header Parameter

The e-mail's header information from, to, cc, bcc, and subject are defined in tagged values in the action node static content (see figure below).

E-mail Body

The body of the e-mail (content) needs to be entered in the tagged value content (see figure below).

Figure: Static E-mail

Recipients

The actual list of recipients will be generated from the tagged values to, cc, and bcc. To enter more than one recipient for a field, multiple values can be added for each corresponding tagged value. Alternatively, you can use "," or ";" to separate recipients:
recipient@mail.com, info@company.ch
In the receiver's e-mail client, the to, cc, and bcc recipients will be displayed in the corresponding fields.

Return Path

The return path of the e-mail cannot be set explicitly in the static example. Instead of that, you need to enter the tagged value from, which will be used as return path of the e-mail.

Components of the E-mail Server (Smart Host)

  • Added in Builder 6.0

When using static e-mail, the e-mail server (smart host) that sends the e-mail needs to be defined in the component diagram. The alias SMTPAlias links the definition in the component diagram to the activity diagram. In the activity diagram, SMTPAlias is defined by specifying the tagged value alias on the SMTP adapter (see action node static content in figure E-mail Body above).

Figure: Static E-mail Component Diagram

 

The SMTPAlias has the following tagged values:

Tagged ValueDescriptionAllowed Values
hostSupply the fully qualified name of the smart host.any string, must be a valid SMTP server
localhost (default)
portSupply the SMTP port number of the smart host.any integer
25 (default)
userSupply user and password as user/password.any string

Please note that, if you do not specify at least a dummy user and password, you will not be able to set it in the Bridge. An empty user tagged value will not be generated to the list of settings.
So, If you want the credentials to be configurable, provide them a default value, like e.g. user/passwd.

The alias SMTPAlias is linked to the service EMailExample, which contains the operation that is assigned the activity diagram including the SMTP adapter.

Components of the E-mail Server (Smart Host) of E2E Builder Version 5.1

  • Deprecated since Builder 6.0

When using the static e-mail configuration, the e-mail server (Smarthost) that sends the e-mail needs to be defined in the deployment & component diagram, and not by using tagged values in an action node of an activity diagram. The aliasEMailAlias links the physical definition in the deployment view with the logical definition in the activity diagram. In the activity diagram, the alias EMailAlias is defined by specifying the tagged value alias on the SMTP adapter (see action node static content in figure Static E-mail above). The Smarthost is defined in the deployment & component diagram (see figure below).

Figure: Static E-mail Compoment Diagram

The SMTPService artifact SMTPServiceArtifact is stereotyped <<SMTPServiceDeployment>> and has two optional tagged values port (default value 25) and protocol (default value SMTP).
The SMTPAccount artifact SMTPAccountArtifact represents the user's e-mail account on the e-mail server. The alias EMailAlias links it with the service EMailExample, which contains the operation that is assigned the activity diagram including the SMTP adapter.

Figure: Static E-mail Deployment Diagram

In the deployment diagram, the node instance of the e-mail server (in the example above mail.fixnetdata.ch) must be defined as backend. The name of the node instance (mail.fixnetdata.ch) must be a valid SMTP server.

  • No labels