Sending email from a unix program

Hi,

I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.

Please advice on this.

(echo ${MESSAGE};uuencode "$FCP_OUT" "ERROR_REPORT.csv"; uuencode "$VALIDATION_RPT" "VALIDATION_REPORT.csv"; uuencode "$CST_INTF_RPT" "CST_INTF_REPORT.csv") | mail -s "$vMail_Subject" "$FCP_EMAIL_ID"
}

Thanks,
Rajesh

Please post you Operating System and version and what Shell you are using and details of your mail software.

It would really help to know if mail from the command line normally works to the given email address and what "mailx" syntax is used to send a normal mail.

This code fragment looks basically sound but is difficult to diagnose without knowing the values of the variables (obviously with anything confidential blotted with X's).

Bit concerned about the "uuencode" statements because they do not output to stdout.

Maybe you need:

cat filename | uuencode filename.csv

Or even:

ux2dos filename | uuencode filename.csv

On some systems ux2dos is called unix2dos. It just converts unix text files to Microsoft's text file format.

Ps. The stray right-brace suggests that this is a function. We really need to see the whole script, not a fragment.