Subscribe to Comments RSS Feed in this post
14 Responses
  1. Hello SIr,

    Very well explained. Email notifications using above code is working perfect for me, however, I am getting emails garbled for the special characters, even though I have used &mynotification.ContentType = “Content-type: text/html; charset=UTF-8”;

    Can you please help with it ?

  2. Dear Team,

    Thanks for the article. We are trying to send a High Priority and Confidential email via templates. The mailbox used is Microsoft Outlook. Is there anyway to do this?


    • Hi Sasti,

      Have a look at the MCFOutboundEmail Class Properties.
      The Priority property and the Sensitivity property are the ones you are after.

      I’ve covered MCFOutboundEmail class here.


      • Hi Rakesh,

        Do you have code to send an attachment along with this generic template?


        • Hi Ram,

          You can use the FileNames and FileTitles properties for sending attachments – both accept arrays.
          FileNames will have the absolute path of the file(s) to be attached.
          FileTitles will have the name(s) with which these attachment(s) would be shown in the email.

          Please add the following code before &oNotif.Send().

          Local array of string &aFileNames = CreateArrayRept("", 0);
          Local array of string &aFileTitles = CreateArrayRept("", 0);
             /* Attachments */
             &sAbsFileName = "absolute/file/path/filename.pdf";
             &oNotif.FileTitles = &aFileTitles;
             &oNotif.FileNames = &aFileNames;


  3. Hi Rakesh,

    Is there a way to embed an image in the mail body through this notification classes.


    • @Siva, the easiest way is to use an img tag within the HTML to display a publicly accessible image.

  4. Hi,

    When we use the .Send method, how do we know that the email is sent. Because i tried the same putting this code in an app package, but the mail was not sent. Do we have an error handling for this

  5. Hi,
    How do we send a report kind of table in the body of email

  6. Hi,
    I am facing performance issue with Mail template.As it takes almost a min to send mail and save transaction.However,When i have tried without mail code transaction saved with in a sec only.


  7. Hi, Is there a way to assign email ids to BCC and CC?

    • @Sanjit

      You can use the following properties for this.

      &oNotif.NotifyCC = "";
      &oNotif.NotifyBCC = "";
  8. Hi,

    Is there a Way to trigger Generic Template HTML Emails in AWE?

Leave a Reply

Your email address will not be published. Required fields are marked *


Read previous post:
PeopleSoft Journal Uploader
PeopleSoft Journal Import Error – User-defined type not defined