The problem is quite simple. File1 and File2 are not files - they are environment variables.
Try it with real files.
Also if the filename end in ".txt" and we convert the files from unix to M$ format we can read them with Internet Explorer and Notepad.
I'm assuming you have a unix with the "ux2dos" command and a mailx with the "-m" switch to correctly format an email with uuencode attachments.
So far none of your posts mention what Operating System and mail client you are running which is why you get irrelevant answers. It is actually easier to deal with this issue by using "sendmail" rather than "mailx". Depends what you have.
For my requirement i wrote a separate script for sending email
and for sending email i called the below command
But am able to view only one attachment how can i modify the code to get 2 attachments attached?
Kindly help me with your thoughts.
Thanks In Advance.
Meva.
---------- Post updated at 06:32 AM ---------- Previous update was at 06:14 AM ----------
Hey..... My script is working now i made changes to it and my final script is given below
But the problem i was facing is that i was not able to view the body of the email and its blank in my mail; its getting echoed in the command prompt....how do i include the body content to my email to my mail.....
---------- Post updated at 06:42 AM ---------- Previous update was at 06:32 AM ----------
Hey my script is now working fine now Below code is used for attaching the .csv files to email
Hello,
I have massive number of big files that needed to be counted for the total number of lines (> 100x millions) each. I want the file name attached to the count results so that they are aligned nicely matching name and counts.
I could do each file at a time, which will take hours to finish,... (8 Replies)
Hello Folks,
I am looking for the script which will go to directory and check for the latest 5 files and send a mail to attaches these files to user.
Kindly guide.
Regards (7 Replies)
Hi Experts,
i need your help here
:confused:
Need to send a report thru mail using unix shell script(AIX). can you help me to do this? . i tried "uuencode" with CSV format, but while reading report all values are in single column. i need each column values in separate cell.
Thanks in... (9 Replies)
I need to attach all files starting with 'BusinessReport' using mutt command.
It could be any number of files in that directory, say BusinessReport_01, BusinessReport_03, BusinessReport_04 etc.
Is there a way to attach all files where filename like BusinessReport_* and sent it using mutt... (2 Replies)
Hello,
I have a .dat file containing one line. I need a script to read that line and make it part of the body and send a mail... Let's say the line is $line. I need the script to send a mail with the body "The last disposal feed is $line".
Thanks (4 Replies)
Hi,
I am trying to get an email sent out by the unix ( aix ) system that has a .gz file attached to it.
I can get the attachment, but it's not working when being looked at from outlook.
I think there is a problem because of the way I am doing it, and the fact that it's binary.
I am trying to... (15 Replies)
if test.dat is the file
cat test.dat|uuencode test.dat|mailx -s "subject" mailid
can be used for attaching test.dat
how can i attach more than one file to a mail using mailx (2 Replies)
Hello All,
I am maintaining a server and I use pine as MUA and sendmail as MTA. Suddenly many users in the network face the problem of not being able to attach files using pine. I checked the sendmail.cf file and found a variable "MaxMessageSize = 1000000". Eventhough the message size... (2 Replies)