Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Hi,
I would prefer you to use delivered app package PT_WF_NOTIFICATION instead of send mail.
For sending emails, create an notification template and in that template use html tags to format your message content.
Regards,
Rahul Khandelwal
Yes, i agree with Rahul, I've used the notification class before to send HTML emails and it works great.
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
Hi,
Can u pls give the code to get letters in bold.am using PT_WF_NOTIFICATION only bt unable to get in bold.
Thanks in advance.
Cheers,
Lucky
There is no code as such.. u need to use html tags in ur email template.
I have used html tags but they are displaying with tags in mail.
Below is the code.I have created a notification template and then used html tags but still unable to get the text in bold.The html tags are visible.Any idea how to avoid display of html tags?
Local PT_WF_NOTIFICATION:NotificationTemplate &ETemplate;
&Msg1 = MsgGetExplainText(30000, 5, "some text");
" | &Err_Msg | "";&Msg2 = "Descr:
&Msg = &Msg1 | &Msg2;
&ETemplate = create PT_WF_NOTIFICATION:NotificationTemplate("", "", "Example", "G");
&aryValues = CreateArrayRept("", 0);
&aryValues.Push(&Msg);
&xmlVars = &ETemplate.SetupGenericVars(&aryValues);
&Temp = &ETemplate.GetAndExpandTemplate(%Language, &xmlVars);
&mynotification.Message = &ETemplate.Text;
&mynotification.ContentType = "text/html; charset=UTF-8";
&mynotification.Send();
Thanks,
You can make use of PeopleSoft Delivered Application Class:
PT_MCF_MAIL
Example Code:
Creating HTML EmailThe following example creates an HTML email.
import PT_MCF_MAIL:*;
/*-- Create an email object by setting individual parameters
---*/
Local PT_MCF_MAIL:MCFOutboundEmail &email =
create PT_MCF_MAIL:MCFOutboundEmail();
&email.From = &FromAddress;
&email.Recipients = &ToList;
&email.Subject = &Subject;
&email.Text =
"
Hi there!
We are ready.
";&email.ContentType = "text/html";
Local integer &res = &email.Send();