I'm trying to attach file. But no luck...I tried your command...
uuencode /home/uname/Result Result.txt | mail -s "Health Check Status" uname@company.com I got email with all junk like below.. begin 644 result.txt M1$56(&5$:7)E8W1O<GD@5')E92!3=&%T=7,@:7,@3TL@;VX@>$1E=E1S=%5A M=$EN=')A,@I-96UO<GD@4W1A='5S(&]N('A$9794<W15871);G1R83(Z($UE M;3H@,S@V-S0T-&L@=&]T86PL(#$P,S`R,3)K('5S960L(#(X,S<R,S)K(&9R M964L(#DP,C,V:R!B=69F97)S(2$*0U!5(%-T871U<R!O;B!X1&5V5'-T56%T I also tried unix2dos, but it says command not found. just to let you know that Im using outlook 2007. @s_linux Can you send a copy to yourself on the Linux system and see what it looks like there? It would help to know when the mangling happens -- on the Linux system or later. The mail -c option followed by your username (without any @domain_name) should do it. What are you using to send the mail from your Linux system to wherever? postfix, sendmail ... ? -c option doent seems to be working. what you mean postfx, sendmail? Im just using mail command. Thanks |
Quote:
Code:
c@CW8:~$ echo 'jhfgjh The mail command only generates local mail. How is it getting to your Outlook? I'm guessing that you have some ISP providing SMTP and POP3 mail servers. For the mail generated by the mail command to get to your ISP you need to transfer it, probably by SMTP, from your local system to your ISP (or Outlook could be collecting it directly from your local system). The commonest packages for doing SMTP are postfix and sendmail. What does the output from Code:
mail -wxyz Code:
c@CW8:~$ mail -wxyz I'm beginning to wonder what your mail command is. What is the output from Code:
type mail Code:
c@CW8:~$ type mail |
This time i tried with c (I didn't read all your post by this time)option, i see some Undelivered Mail return to Sender. but message looks good. Then I tried following..
# echo 'testtesttest' | mail -c root Send options without primary recipient specified. Usage: mail [-BDFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-A account] [-R reply-addr] to-addr ... mail [-BDeHiInNRv~] [-T name] [-A account] -f [name] mail [-BDeinNRv~] [-A account] [-u user] # echo 'testtesttest' | mail -c -s test root hostname:/usr/local/bin # send-mail: invalid option -- s send-mail: fatal: usage: send-mail [options] Here is output of the commands which you gave me... # mail -wxyz mail: illegal option -- w Usage: mail [-BDFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-A account] [-R reply-addr] to-addr ... mail [-BDeHiInNRv~] [-T name] [-A account] -f [name] mail [-BDeinNRv~] [-A account] [-u user] # type mail mail is hashed (/usr/bin/mail) /bin/ls -l /usr/bin/Mail /usr/bin/mail /usr/bin/mailx lrwxrwxrwx 1 root root 4 Nov 13 2008 /usr/bin/Mail -> nail lrwxrwxrwx 1 root root 4 Nov 13 2008 /usr/bin/mail -> nail lrwxrwxrwx 1 root root 4 Nov 13 2008 /usr/bin/mailx -> nail Thanks. |
Quote:
Quote:
just in case something is chomping of the last line, try this: Code:
{ uuencode /home/uname/Result Result.txt ; echo ; echo ; } | mail -s "Health Check Status" uname@company.com |
Quote:
Code:
mail -c root -s "Health Check Status" uname@company.com < /home/uname/Result Quote:
Quote:
Quote:
You could
Charles |
All times are GMT -5. The time now is 08:08 AM. |