- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mailx
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
12-28-2000 12:13 PM
12-28-2000 12:13 PM
Mailx
through mailx?
(I am able to send either a message or an attachment {using uuencode} but not both together)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2000 01:01 PM
12-28-2000 01:01 PM
Re: Mailx
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2000 02:26 PM
12-28-2000 02:26 PM
Re: Mailx
#mailx name@example.com
~r(filename)
Here is some text
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2000 10:33 PM
12-28-2000 10:33 PM
Re: Mailx
If the file you want to attach is in binary form, use the following:
uuencode your_file_name attachment_name | sendmail -v user@host
If it's plain text, you may use 'elm':
elm -s 'Subject Line' user@host < file.txt
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 01:23 AM
12-29-2000 01:23 AM
Re: Mailx
man mailx
-m Do not add MIME header lines Mime Version, Content Type & Content Encoding to the header information while sending mails.
example
# uuencode /tmp/testfile testfile.txt | mailx -m -s 'testje' test@mail.com
Check the following discussion:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa408a24d9abcd4118fef0090279cd0f9!0,00.html
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 06:23 AM
12-29-2000 06:23 AM
Re: Mailx
If I say
mailx -s "Test Subject" xxxxx.com < test1.txt
I am able to send the mail with the subject and test1.txt
appearing as the body of the mail.
Or If I say
uuencode test2.txt test2.txt | mailx -s "Test Subject" xxxxx.com
I am able to send the mail with the subject and the test2.txt appearing as an attachment with the mail.
My requirement is to send the mail with the subject and
test1.txt appearing as body of the mail and test2.txt as an attachment to the same mail.(Hope I am not asking for too much).
Also pl tell me how to send multiple attachments with the
same mail.
regards,
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 07:57 AM
12-29-2000 07:57 AM
Re: Mailx
My problem is solved.
(Assume that "test1.txt" has the contents for the body of the mail, "test2.txt" has the contents for the first attachment and "test3.txt" has the contents for the second attachment)
CODE:
uuencode test2.txt test2.txt >> test1.txt
uuencode test3.txt test3.txt >> test1.txt
mailx -s "Test Subject" xxxxx.com < test1.txt
This sends a mail with the subject and a body and 2 attachments.
"Test Subject" is sent as the SUBJECT of the mail.
test1.txt is sent as the BODY of the mail.
test2.txt is sent as ATTACHMENT 1 in the mail.
test3.txt is sent as ATTACHMENT 2 in the mail.
Thanks for the help extended by you all.
Happy new year to everybody.....!
regards,
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 08:36 AM
12-29-2000 08:36 AM
Re: Mailx
aappend this line to the end of your first text file:
[include /tmp/test2.txt text/plain quoted-printable]
and then:
elm -s "Subject" me@home
this will include the file in the quotes, but use the text up until that point.