| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| willz99ta |
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 909 Joined: 5-April 05 |
Crud, I am unable to send a message to anyone with the data I need.
I need to use a program in UNIX like sendmail or mailx to send the following information using a single command line string. (AKA mailx -r "blah" -s "blah" blah@b.com < blah.txt): A text file in the body of the message A specific name in the "From: " portion of the message. A specific subject line. mailx is failing when I try to have a specific subject AND a specific name in the From portion. If anyone knows how to do this in sendmail or another standard UNIX mail function using a single line command line string, any help is greatly appreciated! Willz99ta |
| sharkenshtein |
|
|
User Level: 2 ![]() ![]() Group: Members Posts: 16 Member No.: 885 Joined: 25-March 05 |
hello
i have been using "mail", my single line looks like mail -s subj to_user@domain < blah.txt in this coomand subject will be ="subj", message body will be filled by text from blah.txt and from name = $user@hostname Sendmail , as i know didn't allow subject passing through command line... |
![]() |
![]() ![]() ![]() |