I am trying to send an attachment through UNIX to the mail box. But along with the attachments I am also receiving junk data as a text file, Suppose "Hi" is the subject of the mailx command then along with the attachment I am getting Hi.txt also.
I tried without subject line, this time I got ATT00063.txt along with myFile.CSV.
the ATT00063.txt file contains the same junc data.
`
end
Code : -
(echo "Hi , This is a test mail"
uuencode myFile.CSV myFile.CSV) | /usr/sbin/sendmail myID@doma.com
---------- Post updated at 01:16 PM ---------- Previous update was at 07:29 AM ----------
Hi,
Could you please help me on this.
~Smith
---------- Post updated at 07:12 PM ---------- Previous update was at 01:16 PM ----------
HI,
Could you please advise me is there any alternative way to overcome this issue or is it possible to use any other command which will send an attachment without any junk data.
When you send this email through sendmail/mail from UNIX, does it by any chance get routed to an exchange server for delivery to your inbox? If yes, then the ATT*.txt with junk is probably being converted or added by the exchange server.
Look at this URL on the same and a possible solution that your exchange admin will need to set.
When I execute the script I am getting .CSV and also att.txt files (att*.txt --> when there is no subject in mailx, if "Hi" is the subject then Hi.txt) attached and coming to my inbox.
I am not sure if the att*.txt has been created by the exchange server.
The att*.txt file contains only 2 lines dara : -
`
end
I need your kind support how to overcome this issue, is there any alternative commnnd which sends only *.csv, please share your thoughts, I will modify my code accordingly.