- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
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-27-2009 03:47 AM
тАО07-27-2009 03:47 AM
i want to send mail with attachment and body using mailx.
i used below command
uuencode file1 file1|mailx -m -s "Report" abc@xyz.com < body.txt
we are recieving mail with only body contents but not with attachment
plz guide me
regards
himacs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 07:17 AM
тАО07-27-2009 07:17 AM
Re: sendmail
Take a look at this script:
http://www.hpux.ws/?p=7
There is a working script in there. You can adapt it easily to your needs.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2009 07:33 AM
тАО07-27-2009 07:33 AM
Re: sendmail
Following are different methods for mail attachments:
SENDING EMAIL WITH ATTACHMENT- 1
# uuencode /etc/lvmconf/vg00.mapfile /etc/lvmconf/vg00.mapfile | elm -s "test att" rk@abc.com -JUNK
SENDING EMAIL WITH ATTACHMENT- 2
# ux2dos /etc/lvmconf/vg00.mapfile | uuencode /etc/lvmconf/vg00.mapfile | mailx -m -s "Test" rk@abc.com -WORKING
SENDING EMAIL WITH ATTACHMENT- 3
# mailx -m -s "Hello" rk@abc.com << END
`ux2dos /home/abc/.cshrc | uuencode /home/abc/.cshrc.txt`
`ux2dos /home/abc/.profile | uuencode /home/abc/.profile.txt`
SENDING EMAIL WITH ATTACHMENT- 4
# elm -- TUI
SENDING EMAIL WITH ATTACHMENT- 5
# mail -t rk@abc.com << end
> Subject : test with attach
> $( uuencode /etc/lvmconf/vg00.mapfile /etc/lvmconf/vg00.mapfile)
> $( uuencode /etc/lvmconf/vg00.conf /etc/lvmconf/vg00.conf)
> end
Regds,
R.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2009 01:40 AM
тАО07-28-2009 01:40 AM
Re: sendmail
>how to send the attachment through sendmail/mailx
(1)#uuencode LOGS.txt LOGS.txt | mailx -s " subject " user@xyz.com
this will send the mail with attachment .....if you are not able read the txt then save it and open with wordpad.
here is the diffrence between eg (1) & (2)
(2)# mailx -s " subject " user@xyz.com
this will send the mail with body (content ) of txt.
Regards,
Subodh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2009 02:53 PM
тАО08-02-2009 02:53 PM
Re: sendmail
Thanx for the responses..and sorry for my delayed reply..
please guide me send more than one attachment in single file.
regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2009 05:55 PM
тАО08-02-2009 05:55 PM
Re: sendmail
# elm
You will see something like below:
You can use any of the following commands by pressing the first character;
d)elete or u)ndelete mail, m)ail a message, r)eply or f)orward mail, q)uit
To read a message, press
Command: m
Send the message to: abc@xyz.com
Subject of message: xxxxxxx
Copies to: def@xyz.com
>>Vi editor open here for typing a message, type and save and quit
Then you will be prompted:
Please choose one of the following options by parenthesized letter: s
e)dit message, edit h)eaders, s)end it, a) attachments or f)orget it. <<= select what you want, example "a" to add attachment.
a
Attachments:
a)dd, e)dit, d)elete, m)odify, q)uit
a
Filename: /tmp/my_attachment1 <<== type full path of req file
Hit return
Attachments:
a)dd, e)dit, d)elete, m)odify, q)uit
a
Filename: /tmp/my_attachment2 <<== type full path of req file
Hit return
Attachments:
a)dd, e)dit, d)elete, m)odify, q)uit
q
Please choose one of the following options by parenthesized letter: s
e)dit message, edit h)eaders, s)end it, a) attachments or f)orget it.
s
Mail sent!
Command: q
#
#
So this is how you can send multiple attachments via elm.
Hope this is what you are looking for.
Regds,
R.K.