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

    • hi rahul, did you solve your problem? i have the same problem in my environment.

  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

  3. Hi Rakesh,

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

    Regards,
    Siva

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

    • Hi Prasant,

      Were you able to achieve sending table within the body of email? could you share ho did you do this?

      thanks
      Manu

  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.

    Thanks
    Charu

  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 = "cc@gmail.com";
      &oNotif.NotifyBCC = "bcc@gmail.com";
  8. Hi,

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

  9. Hi,
    I am sending an attachment along with the generic template.
    Is there a way to validate whether the mail is triggered or not.
    as &Notify.Send() is not writing any returncode. Thanks

  10. Hello Rakesh. thanks for the helpful information! I have a more rudimentary question and then a request:

    1. So, let’s say I am wanting to add a template variable to the Generic Template called “Journal Denial”. Could you direct me to a resource online that helps me know where to edit the existing PeopleCode so that I could send the email with the new variable included as you have described in this article?

    2. The link for the additional methods found in the connected article https://www.psoftsearch.com/html-email-using-mcf-class/ is broken. Could you please remedy this?

    Thank you!

    Scott

Leave a Reply

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

*
*