Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

help,mailx question ????

Go to solution

help,mailx question ????

hi,expert !
I use "mailx" to send mails to my mail server on exchange server .but I found sometimes my mail's text and attachement are trucated ,but not always .
who can tell me why ? and how to correct this situation .
thanks a lot !



P.S. This thread has been moevd from HP-UX > System Administration to HP-UX > messaging - HP Forums Moderator

harry d brown jr
Honored Contributor

Re: help,mailx question ????

How are you "uuencode"'ing your attachments? LIKE THIS:

for i in `echo filename1 filename2 filename3 ...`
uuencode $i $i.txt
done|mailx -m -s "test"

live free or die
Live Free or Die
Michael Tully
Honored Contributor

Re: help,mailx question ????


What OS version, what patch revision do you have?. If it is only sometimes I would looking at the method and what pattern fails, if there is one. Do you have the correct entry in the /etc/mail/ file?


Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: help,mailx question ????

Just a thought, but can you verify the contents with a simpler mailer like elm, or look at the actual ASCII text with vi? Exchange and Outlook (and PC helper programs)tend to hide information to avoid confusing you. You can do this by appending a local address on the machine sending the mailx message, something like this:

mailx -sSomeMessage,local_user_ID < somefile

Two copies of the message will be sent so you can verify the actual contents in /var/mail/local_user_ID or read it with elm.

Bill Hassell, sysadmin