- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can you send e-mail attachment using 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
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
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
тАО07-18-2002 04:31 AM
тАО07-18-2002 04:31 AM
Can you send e-mail attachment using mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 04:42 AM
тАО07-18-2002 04:42 AM
Re: Can you send e-mail attachment using mailx
ux2dos YourDocument|uuencode YourDocument.txt|mailx -m -s "Here is your text document" email@domain.com
(usage of cc and bcc I don't know)
BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 04:44 AM
тАО07-18-2002 04:44 AM
Re: Can you send e-mail attachment using mailx
This is just a sample of the hits I came up with by doing a boolean search of the forums on +mailx +attachment:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x99da35067c18d6118ff40090279cd0f9,00.html
Adding cc and/or bcc might prove just as fruitful.
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 04:46 AM
тАО07-18-2002 04:46 AM
Re: Can you send e-mail attachment using mailx
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:09 AM
тАО07-18-2002 05:09 AM
Re: Can you send e-mail attachment using mailx
Just do a search on the forum for the solution you are looking for and you'll have the solution in no time at all.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:22 AM
тАО07-18-2002 05:22 AM
Re: Can you send e-mail attachment using mailx
All of the emails are empty. I want to send attachment but I also want some information in the email itself.
Attached is my script I am testing....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 05:26 AM
тАО07-18-2002 05:26 AM
Re: Can you send e-mail attachment using mailx
uuencode filename filename | | sendmail emailid. or mailx mailx mailid
ex:
uuencode /etc/passwd passwd.hostname | sendmail user@domain
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 01:23 AM
тАО07-19-2002 01:23 AM
Re: Can you send e-mail attachment using mailx
I have attached a sample script I use to send text file as attachment.
Just replace "yourservername" by the hostname of your server and "yourcompany.com" by your domain name.
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 03:07 PM
тАО10-25-2002 03:07 PM
Re: Can you send e-mail attachment using mailx
As I read this, you wish to send an email with an attachment and a message in the body.
If so, this should do it -
mailx -m -s "Some Title" someone@somewhere.com << EOF
`ux2dos some.fil | uuencode somefile.txt`
Type some message here for the body.
EOF
Best of Luck,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2002 12:26 PM
тАО10-27-2002 12:26 PM
Re: Can you send e-mail attachment using mailx
Within the body of your email add this:
------------------------------------
This is my text. How are you?
[include /tmp/myattach application/octet-stream base64]
This is some more text in the middle.
[include /tmp/myexcel.xls application/ms-excel base64]
This is a closing message in the email.
----------------------------------------
That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method.
Then to use it from a script:
elm -s "My Subject" dumbo@mailserver.com < myletter
Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory
under the senders home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2002 01:55 AM
тАО10-28-2002 01:55 AM
Re: Can you send e-mail attachment using mailx
/usr/bin/mailx -s "$LOCALHOST ...title ..." receiver@xxx.xx < /dir/file.dat
Make sure that your /etc/sendmail.cf has the appropriate parameters.
Regards,
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2002 03:17 AM
тАО10-28-2002 03:17 AM
Re: Can you send e-mail attachment using mailx
mailx abc@hotmail.com < file.txt.
You can enter whatever email and file you want. :D
Cc and Bc i never try before.
From,
Chua Wen Ching :D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2003 05:36 PM
тАО01-23-2003 05:36 PM
Re: Can you send e-mail attachment using mailx
I'm hoping you are flexible on which mail utility to use. sendmail handles attachments better.
I got this straight out of an hp forum but could not find the post.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com