- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- send e-mail from command line add subject how to
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
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
тАО08-04-2005 08:34 AM
тАО08-04-2005 08:34 AM
I can do this from command line just fine:
echo "test" | sendmail
The email is sent and received at destination successfully.
The command below sends an e-mail and the address is being put at BCC with no subject and the body contains the word "test". All I need is to add a Subject field and eventually a To or CC to it. Please help.
Thank you!
james
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:37 AM
тАО08-04-2005 08:37 AM
Re: send e-mail from command line add subject how to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:40 AM
тАО08-04-2005 08:40 AM
Solutionecho "test" | elm -s "Test Subject" admin@xyz.com.
Unlike the interactive version of elm (which will create it automatically), you must have a .elm directory (it can be empty) in the sender's home directory. Man elm for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:45 AM
тАО08-04-2005 08:45 AM
Re: send e-mail from command line add subject how to
This will work as well.
mailx -s "This is the subject" you_address.com < test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 08:47 AM
тАО08-04-2005 08:47 AM
Re: send e-mail from command line add subject how to
echo "test" | "mailx" -s 'test subject' admin@xyz.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 09:05 AM
тАО08-04-2005 09:05 AM
Re: send e-mail from command line add subject how to
Since elm needs a directory "to work" mailx is the way to go for now.
Thank you all!
james.
PS: shouldn't sendmail have some "hidden" option to send a subject?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 09:08 AM
тАО08-04-2005 09:08 AM
Re: send e-mail from command line add subject how to
(echo "Subject: e-mail subject here" ; echo "test") | sendmail admin@xyz.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 09:22 AM
тАО08-04-2005 09:22 AM
Re: send e-mail from command line add subject how to
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 09:55 AM
тАО08-04-2005 09:55 AM
Re: send e-mail from command line add subject how to
Mel, I am not sure I understand, is there a \n needed if I need to put a "To: ..." line for example?
Thanks all!
james