[Stackoverflow] [Progress OpenEdge ABL] UNIX SILENT VALUE in Progress4GL .p doesnot work with variables while trying to send a mail

Status
Not open for further replies.
R

rahul mukherjee

Guest
I have a .p where I have decalred a variable as below:

DEFINE VARIABLE vEmailAdress AS CHARACTER NO-UNDO INITIAL "xyz.com".


After some code lines, lastly I intend to mail a .csv that I create via code somewhere in the server. So I used the following:

UNIX SILENT VALUE('echo "Please see attached report" | mail -s "Test email message" -a /path/to/report.csv -r "New UI Report <noreply@sample-mail.com>" xyz.com').


This works alright.

The issue happens when I am trying to use the variable I declared:

UNIX SILENT VALUE('echo "Please see attached report" | mail -s "Test email message" -a /tmp/newuireport.csv -r "New UI Report <noreply@rentokil-initial.com>"' + vEmailAdress).


I have also tried like this:

UNIX SILENT VALUE('echo "Please see attached report" | mail -s "Test email message" -a /tmp/newuireport.csv -r "New UI Report <noreply@rentokil-initial.com>" vEmailAdress').


I am getting the following error message:

Send options without primary recipient specified.


Please can someone help.

Continue reading...
 
Status
Not open for further replies.
Top