Site menu:

Standard Job Search
Keywords: Country: Advance Search






PeopleSoft SendMail is kind of outdated but still it works, PeopleSoft is recommending to use email using the MCFOutboundEmail Class.

REM Sending an Email using Multi Channel Framework.

import PT_MCF_MAIL:MCFOutboundEmail;

Local PT_MCF_MAIL:MCFOutboundEmail &SendEmail = create PT_MCF_MAIL:MCFOutboundEmail();

&SendEmail.From = %EmailAddress;
&SendEmail.Recipients = "test@testing.com"; /*Email Addr goes here */



&SendEmail.Subject = "Test Email";
&SendEmail.Text = "This is just a Test mail";

/* Setting the Content type */
&SendEmail.ContentType = "text/html; charset=US-ASCII";

/* Sending the email */
&F_Status = &SendEmail.Send();

/*Its better if you put a message based on the return Values

-1 Email was sent but whether it was successful or not is not known.
0 Email failed before being sent.
1 Email was delivered.
2 Email delivery not attempted.
3 Email has only been partially delivered. Only some of the addresses in the list of addresses were delivered to.

*/


Evaluate &F_Status
When 1
WinMessage("Email successfully sent to the user.", 0);
Break;
When-Other
WinMessage("Some thing is error pl check again.", 0);
Break;
End-Evaluate;




Posted by: Vamsi      Date: 2015-11-02


        Post more Comments :
Name:
EmailID:
Date:
Comments: