| Title | Under | Posted on |
|---|---|---|
| how to send hyperlink with email in application engine program. | PeopleSoft Technical | 06/13/2013 - 12:55am |
| Saving records | PeopleSoft Technical | 06/04/2013 - 11:11am |
| can we alter a trigger in DB2 to add a new column | SQL & PL/SQL | 05/29/2013 - 1:31am |
| Required Peoplesoft HRMS Functional Training | PeopleSoft Functional | 05/07/2013 - 10:29pm |
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();