You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How to send a mail to third party using sqr in windows platform

4 replies [Last post]
Guest's picture
Guest

I have a task that a mail has to trigger to my manager when i run a perticular SQR Program

Guest's picture
Guest (not verified)
Re: How to send a mail to third party using sqr in windows ...

you can use call system command to call either psmail or mailx depending upon the server OS.
there is a blog post in this site.. do search..

Guest's picture
Guest (not verified)
Re: How to send a mail to third party using sqr in windows ...

Local string &MAIL_CC, &MAIL_TO, &MAIL_BCC, &MAIL_SUBJECT, &MAIL_TITLES, &MAIL_TEXT, &MAIL_FILES, &MAIL_FROM, &REPLYTO, &SENDER;
Local number &MAIL_FLAGS;

&MAIL_FLAGS = 0;
&MAIL_TO = "email-address-message-going-to";
&MAIL_CC = "";
&MAIL_BCC = "";
&MAIL_SUBJECT = "Test email";
&MAIL_TEXT = "Sending an email from PeopleCode.";
&MAIL_FILES = "";
&MAIL_TITLES = "";
&MAIL_FROM = "email-address-message-is-from";
&MAIL_SEP = ";";
&CONTTYPE = "";
&REPLYTO = "";
&SENDER = "";

&RET = SendMail(&MAIL_FLAGS, &MAIL_TO, &MAIL_CC, &MAIL_BCC, &MAIL_SUBJECT, &MAIL_TEXT, &MAIL_FILES, &MAIL_TITLES, &MAIL_FROM, &MAIL_SEP, &CONTTYPE, &REPLYTO, &SENDER);

If &RET <> 0 Then
MessageBox(0, "", 0, 0, "Return code from SendMail= " | &RET);
/*Do error processing here*/
End-If;

Guest's picture
Guest (not verified)
Re: How to send a mail to third party using sqr in windows ...

Guest

raj.psoft's picture
User offline. Last seen 2 years 3 days ago. Offline
Joined: 03/25/2010
Posts: 26
Re: How to send a mail to third party using sqr in windows ...

You can get this code in existing SQR (Ex: POPO005).

Raj

Post new comment

CAPTCHA
The question below is to prevent automated spam submissions.
3 + 17 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.