PeopleSoft SendMail() via PeopleCode


&TO = "xyz@mybasicknowledge.com";
&CC = "";
&BCC = "abc@mybasicknowledge.com";
&SUBJECT = "Subject Here"
&TEXT = "BODY here."
&FILES = "<Filename Path>"

&FLAGS = 0;
&RETURN_CODE = SendMail(&FLAGS, &TO, &CC, &BCC, &SUBJECT, &TEXT, &FILES, &TITLES);

If Not (&RETURNCODE = 0) Then /* 0 measn success)*/
/* Do Error Processing */

End-If;