Here is the piece of code you can use to send email with attachments in SQR.
BEGIN-PROCEDURE sendmail
let $subject = 'Subject of the Email Here'
let $to_list = 'email@email.com'
let $ReportID = 'G:\PeopleSoft\Reports\Report_Name.pdf'
let $alias ='Attachment File Name Alias including the file extension'
let $enter = chr(10)chr(13)
let $body_txt = 'Hi,'$enter$enter'Please Find the Report attached with this email.'$enter$enter'Regards,'$enter 'Peoplesoft Application Support'$enter$enter'PS: We request you not to reply to this automated mail trigger.' let $mail-cmd = 'F:\PSFT819\bin\server\winx86\psmail -TO"'$to_list'" -SUBJECT"'$subject'" -BODY"'$body_txt'" -FILE"' $ReportID '" -ALIAS"'$alias'"'
CALL SYSTEM USING $mail-cmd #Status
end-procedure
You would have to change the value of the variable $mail-cmd based on th path of your PS_HOME.
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 |
Comments
Good work man.. keep it up..
Post some articles related to peoplesoft server administration.
Feby
is there a flag or switch that can be set so that the users are unable to reply to the email once it is received?
Nope, you can't prevent the user from hitting the reply button.
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
On the -TO parameter, I want to use a file that list several email addresses, what format do I use? I have them currently listed and it only sends to the first one.
Thanks. Let me re-phrase - is there a way to flag the sent email such that when the user attempts to reply, the reply will not route?
Can't you use an invalid "from" email? What you happen if you tried to do that? Please, lets use the post on the forum to finish this up http://compshack.com/forum/peoplesoft/peoplesoft-technical/sendmail-do-not-reply
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
how to send multiple attachments through sqr , we need to send excel file also
we need to attach both excel and pdf .. is that is possible .. request any one over here to help me ou t... thanks in adavnce ..
How to send mail people in keeping CC