sending mails using mailx command unix env

Mokash

Member
Dear All,

Can anyone guide me on how to add CC while sending mails using mailx command.
Even I want to check whether mail is sent successfully or not? How should I check this. All this functions, I want to add to the program.
Thanks ....
 

ovf

Member
Unix example:
echo ${MESSAGE_ed} | mailx -s "${SUBJECT_ed}" -c ${CC_ed} ${RECIPNT_ed}

Note: -c "CC addr" is what you need.

Ole
 
Top