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 |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
&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);
Post new comment