Email Sending Activities In Pega

Hi,

In this blog we will see some of the OOTB email sending activities in pega.




  • SendEmailNotification
  • SendSimpleEmail
  • SendEmailWithAttachments


1) SendEmailNotification

This activity is present in @baseclass. 

Description = Sends Email Correspondence.

This activity basically gathers all the parameters for email and passes them to send email function.

From: It accepts email address as per Email Address specification defined in RFC with only lcoal part and domain seperated by @

To/CC/BCC : It accepts one or more email addresses separated by "," or ";".Email Address should adhere to internet email address specification as defined in RFC.

It is recommended separating email addresses with "," when there are multiple email addresses.

Please note the below limitation when email address contains display name with ";" in it.

Semicolon is replaced by comma when message is delivered to the email server which might cause issues when display name is used in down stream processing

Input to To/CC/BCC:"foo;bar"<foo@bar>

Mail sent to "foo,bar"<foo@bar>.

There won't be any functional impact and mail will be received by mentioned mailbox .


It contains following parameters. 









Important Note

Using this activity we can send email to CC and BCC.






When we call this activity we need to pass following mandatory parameter value.

To

From

Subject

Message

Password

smtpHost


Important Note

HTMLmessage checkbox :- We should check this checkbox when our message contains html tags like

<br/>  etc.


AttachmentPage Parameter :- Here, we pass the page which contains attachment.


2) SendSimpleEmail

This activity is present in @baseclass. 

This activity provides a basic interface to the SendEmailNotification activity.
Note that it assumes a default email account has been set up.

Used by the SendEmail shape in the standard flow stencil. Note that this activity is meant mainly for demo purposes. Production systems should be using our standard correspondence (activity Work-.CorrNew)

It accepts following parameters:- 








Following parameters are required in SendSimpleEmail Activity:-

i) To

ii) Subject

iii) Message

iv) EmailAccount



3) SendEmailWithAttachments

This activity is present in @baseclass. 

Description = Sends Email with all attachments of a referenced page.

This activity basically gathers all the parameters for email and passes them to send email function.

This activity is similar to @baseclass.SendEmailNotification. 

It has an additional parameter:

 ReferencePage.  Reference page should contain the name of a clipboardpage whose attachments (Data-WorkAttach-*) you want to send with the email.  

This activity calls SendEmailNotificationWithAttachments pasing in the AttachmentPage name reference.

It has following parameters:-










Here, Following parameters are required:








To

From

Subject

Message

Password

smtpHost


Important Note

Using this activity we can send email to CC and BCC.


Important Note

HTMLmessage checkbox :- We should check this checkbox when our message contains html tags like <br/>  etc.


Thanks,


Comments

Popular posts from this blog

pxSubscript and pxListSubscript Properties In Pega

Frequently Used Date Expressions In Pega

pyForEachCount In Pega