Subscribe to Comments RSS Feed in this post
5 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?

    Thanks.

    • 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.

      Regards
      Rakesh

      • Hi Rakesh,

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

        Thanks,
        Ram.

        • 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";
             &aFileNames.Push(&sAbsFileName);
             &aFileTitles.Push("file-name-appering-in-email.pdf");
             &oNotif.FileTitles = &aFileTitles;
             &oNotif.FileNames = &aFileNames;

          Cheers
          Rakesh

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

Close