Creating Mail Target Activity
The Mail Target provides the ability to send the data to any mail box and this feature is available in all the editions of Adeptia Suite.
Perform the following steps to create a mail target activity:
On the Develop tab, click Services > Target > Mail.
Click Create New to view New Mail Target screen.
Field Name Description Name Name of the new Mail Target Description Description of the new Mail Target Protocol Internet standard protocol to be used for sending outgoing mails. The available option is SMTP. The default port number for SMTP protocol is displayed in the Port text box. Outgoing Mail Server Outgoing mail (SMTP) Server address Security Type Protocol that provide data encryption and authentication between applications and servers in scenarios where that data is being sent across an insecure network. The available options are SSL, TLS, None. Supported TLS version is 1.2. Port Port number of the Outgoing Mail Server From(Email-Id) Sender's Email id To Email-Id(s) Email-Id(s) of the recipients separated by commas CC Provide the recipient's email id you want to copy for this mail target event. However, you can still change this email id later at run-time by changing the values in context variable. For steps to do change at ru-time, refer towards end of this page. BCC Provide the recipient's email id you want to put in BCC for this mail target event. However, you can still change this email id later at run-time by changing the values in context variable. For steps to do change at ru-time, refer towards end of this page. Subject Subject of the Target email User Id Username of the Mail Server Password Password of the Mail Server Confirm Password Re-write the same password to confirm Message Content Type Content type of the outgoing message. The available options are HTML and Plain Priority Priority of the email. The email, which will be sent by this mail target activity, will have the priority flag as selected in this drop-down box. The available options are Normal, High, Low Data Location Location of the data in the email whether sent as an Attachment or in the email Body. Choose Multipart to send both attachments and email body in the mail target. If you choose MultiPart to send both Attachment and body in the Mail Target, there will be no additional step to send the Body, you just have to pass the stream. However, you have to create a Put-Context Var activity before the Mail target and set the variable and Message Body in Variable Value.
For example:
VariableName: Service.<<MailTargetActivityName>>.MessageBody
File Name Name of the file, if the data is to be sent in the email as an attachment For information about Advanced Properties, refer to Changing Advanced Properties.
- Click Save.
You can verify the mail target activity at the design time. For this, click Test. This verifies the values given in the Outgoing Mail (SMTP) Server, Port, User ID and Password text boxes.
Changing the values CC & BCC at Runtime
Adeptia allows you to change the values of CC or BCC in a Mail Target by creating a Context Variable in the Process Flow. Note the following points while creating Context Variable:
- Write the variable name as "Service.<<mail_target_activity_name>>.cc". For example if the mail target activity name is SF_VendorA_Targetmail, then the variable name should be Service.SF_VendorA_Targetmail.cc.
- Write the email id that needs to be put in the cc in Variable Value. You can write multiple emails separated by comma in the variable value.
- For using BCC write Service.<<mail_target_activity_name>>.bcc. Rest of the steps are similar to creating variable for CC (Steps 2a, 2b above).
- Place the Context Variable after the Mail Activity in the Process Flow.
- Click Done and save the process flow.