I need to send the generated CSV files on regular intervals using script.
I am using UUENCODE
and mailx
for the same.
But i need to know that is there any method/way to know that email sent successfully? Any kind of acknowledgement or feedback or something???
It is likely to report for any error. Also the file is confidential and is not intended to deviate to some foreign path.
Edit: Code being used for mailing.
subject="Something happened"
to="na734@company.com"
body="Attachment Test"
attachment=/home/iv315/timelog_file_150111.csv
(cat test_msg.txt; uuencode $attachment somefile.csv) | mailx -s "$subject" "$to"