- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with attach in mailx/sendmail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 09:40 PM
01-28-2004 09:40 PM
Problem with attach in mailx/sendmail
I triyng to send a mail from HPUX 11.0 as follows:
- Must have subject and body
- Must have a file attached
I tried:
uencode /tmp/file1.txt file1.txt | mailx -m -s "TEST" adress1@xxx.com
and
uencode /tmp/file1.txt file1.txt | sendmail -v adress1@xxx.com
But, I do not know how to put the body and, in the other side, the attached file (in this case is a text file) arrives in a bad format.
Does anybody know how to put the body and how to "format" the text in the attachment to be readable as in the source?
Thxs in advance and regards,
R.O.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:08 PM
01-28-2004 10:08 PM
Re: Problem with attach in mailx/sendmail
echo "Subject:
echo "
uuencode
Then cat it into sendmail;
cat /tmp/tempfile.$$ | sendmail
Some mail programs may not like using sendmail as it formats differently to mailx, if you have a problem replace sendmail with maix in the cat command above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:10 PM
01-28-2004 10:10 PM
Re: Problem with attach in mailx/sendmail
Using sendmail:
(echo "test text\n";cat /etc/passwd | ux2dos | uuencode passwd.txt;echo "\ntest text2") | sendmail address
This sends a mail with the following as the body;
test text
test.text2
The \n's are just to insert new lines to make the mail more readable.
the brackets () combine the echo's and cat command into a single output which is passed to sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 10:58 PM
01-28-2004 10:58 PM
Re: Problem with attach in mailx/sendmail
With metasend you have also the possibility to attach multiple files at the same time.
It will handle all email headers according with the MIME type you specify on the command line.
Best regards,
Virgil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2004 11:11 PM
01-28-2004 11:11 PM
Re: Problem with attach in mailx/sendmail
Its production, you can take pieces of it.
If it fails, have your smtp relay server checked.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com