Sending mail using PT_MCF_MAIL:MCFOutboundEmail();
We are using the following code to send a mail
import PT_MCF_MAIL:*;
Local PT_MCF_MAIL:MCFOutboundEmail &email = create PT_MCF_MAIL:MCFOutboundEmail();
------------------------------------------
&email.Recipients = "test_mail"; /*incorrect mail id*/
or
&email.Recipients = "srinivas@1234.com"; /*incorrect domain id*/
----------------------------------------------
&email.From = "";
&email.BCC = "";
&email.Subject = "Test mail";
&email.ReplyTo = "";
&email.ContentType = "text/html";
&res = &email.Send();
WinMessage("Mail Sent " | &res | "-" | %ObEmail_Delivered, 0);
I am passing wrong Recipients mail id. when we run this still its &email.Send(); returning 1 (success)..
is there any workaround in PS to validate the mailid against SMTP server.
any idea?
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
&Mail_flags=0;
&Mail_CC=" ";
&Mail_BCC=" ";
If &DB_Name="FN91DV"
&Mail_To="Select * from PS_PO_Email";
/*here try to use
Exit(1);*/
Else
&Mail_To="srinivas@1234.com"
/*here try to use
Exit(0);*/
End-if;
&ret=SendMail(&Mail_flags, &Mail_To,&Mail_CC,&Mail_BCC);