Hi folks,
As part of a system error checking I am doing I need to send and email to the support team when a error occurs. Can someone help me please as regards SendEmail.
I am trying to figure out how this works and get it to work for me. I have created a program sndemail.p (below).
I am trying to get this to work. It doesn't work obviously because there is no procedure within the program called sendEmail. But I presumed that IN TARGET-PROCEDURE bit would call a procedure internal to progress. I have tried various things to get this working including looking at afsesmngrp.i, looking for other progream that call sendEmail.p, I have tried progress help and tried finding some information about this online. In all cases to no success.
I was wondering if anyone knows how to use this program and could show me an example of how to use it, or if anyone could point me in the right direction on somewhere I might be able to get better information on sendemail IN TARGET-PROCEDURE. As I'm not sure if even my first parameter is correct.
Thanks.
As part of a system error checking I am doing I need to send and email to the support team when a error occurs. Can someone help me please as regards SendEmail.
I am trying to figure out how this works and get it to work for me. I have created a program sndemail.p (below).
I am trying to get this to work. It doesn't work obviously because there is no procedure within the program called sendEmail. But I presumed that IN TARGET-PROCEDURE bit would call a procedure internal to progress. I have tried various things to get this working including looking at afsesmngrp.i, looking for other progream that call sendEmail.p, I have tried progress help and tried finding some information about this online. In all cases to no success.
I was wondering if anyone knows how to use this program and could show me an example of how to use it, or if anyone could point me in the right direction on somewhere I might be able to get better information on sendemail IN TARGET-PROCEDURE. As I'm not sure if even my first parameter is correct.
Thanks.
Code:
/* sndemail.p*/
DEFINE VARIABLE vchFailedReason AS CHAR NO-UNDO.
ASSIGN vchFailedReason = "".
RUN sendEmail IN TARGET-PROCEDURE
( INPUT "Microsoft Outlook", /* Email profile to use */
INPUT "name@test.com", /* Comma list of Email addresses for to: box */
INPUT "":U, /* Comma list of Email addresses to cc */
INPUT "Test Subject", /* Subject of message */
INPUT "This is a Test", /* Message text */
INPUT "":U, /* Comma list of attachment filenames */
INPUT "":U, /* Comma list of attachment filenames with full path */
INPUT NOT SESSION:REMOTE, /* YES = display dialog for modification before send */
INPUT 0, /* Importance 0 = low, 1 = medium, 2 = high */
INPUT NO, /* YES = return a read receipt */
INPUT NO, /* YES = return a delivery receipt */
INPUT "":U, /* Not used yet but could be used for additional settings */
OUTPUT vchFailedReason /* If failed - the reason why, blank = it worked */
).
MESSAGE vchfailedreason VIEW-AS ALERT-BOX.