1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

UNIX SILENT VALUE in Progress4GL .p does not work with variables while trying to send a mail

Discussão em 'StackOverflow' iniciado por fdantas, Maio 16, 2018.

  1. fdantas

    fdantas Administrator Moderador

    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...

Compartilhe esta Página