Mail using Unix SCO 2.1


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mail using Unix SCO 2.1
# 1  
Old 07-02-2003
Data Mail using Unix SCO 2.1

Hi! Anybody here can help me how to put a subject using the command mail from Unix SCO 2.1. I can't put a subject to my mail. The output will be viewed using MS Outlook, i need to put a subject in my mail.

Thanks
# 2  
Old 07-02-2003
Do you have a mailx command? It has an option for -s for subject.
# 3  
Old 07-03-2003
Bug SCO Unix Mail 2.1

Good Day ! Thanks for the info. It helps me in my problem. Is mailx supports the use of cc: and bcc: ? I'm using this command to send a file to unix mail. Do you think there's an option that i can add in my command mailx -s 'Testing' eric < file.txt. I hope that you can give me idea and i hope that i can also help.



Thanks.Smilie
# 4  
Old 07-03-2003
You will have to check your man pages - I don't have a SCO system to check for you.

Start of man page for mailx from Solaris:
% man mailx

User Commands mailx(1)

NAME
mailx, mail - interactive message processing system

SYNOPSIS
mailx [ -BdeHiInNURvV~ ] [ -f
[ file | +folder ] ] [ -T file ] [ -u user ]

mailx [ -BdFintUv~ ] [ -b bcc ] [ -c cc ] [ -h number ]
[ -r address ] [ -s subject ] recipient ...

Note that it does have cc and bcc.

As far as how to do the command in a script or from command line, there are many ways:
[code]
#!/bin/csh
#
set defdir = "/usr/local/sysconfigs/daily"
set mailgrp = "`cat /usr/local/bin/admin-mailgrp`"
/usr/bin/mailx -s "Daily Snapshot" $mailgrp < $defdir/snapshot.today
exit

$ mailx -s"Test from `hostname`" myreceipent@mycom.com < ./myfile

and see this thread for another way (see Perderabo's post)

And if you want more info, search this site first for mailx and READ the man page specific to your OS.
# 5  
Old 07-03-2003
SCO Unix Mail 2.1

I use the option -c but still it's not working. I use the command:
mailx -s 'testing' eric -c tonete < file.txt
Entering the command, it returns this message
"-c... User unknown".
I'll already use man mailx and found out that -c option is not available.

Anyway, i'll just put all the recepients in 'To:' for the meantime. Thanks for the help.

Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

2. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

3. SCO

load sco xenix and sco unix binary ?

Hi I have some sco xenix object, bin and archive files that operate in sco unix 5.0.7. I know that sco unix kernel can support sco xenix binary. I want to know how can I link xenix and unix archives together? (0 Replies)
Discussion started by: javad1_maroofi
0 Replies

4. UNIX for Dummies Questions & Answers

Unix mail to personal mail, Strange behavour

Hi. I am running a script on solaris 10 and mailing it to my personal email. the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account. /network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com the sript... (2 Replies)
Discussion started by: k00061804
2 Replies

5. UNIX for Advanced & Expert Users

mail command on sco box

Hello, Can anyone tell me why the command below will not work on a SCO box, but does fine on aix, suse boxes. Thanks. echo "test" | mail -s "Test" test@test.com Course the email address I just faked out for sample purpose. I see from the it gives the following error below. I also changed... (0 Replies)
Discussion started by: benefactr
0 Replies

6. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

7. SCO

How to configure SCO OpenServer 5.0.7 mail system MMDF

Hello unix experts, Here I have couple of questions regarding MMDF mail system on SCO unix: 1. How can I configure SCO OpenServer 5.0.7 mail system MMDF to send emails using "mail" command to other machines in the same LAN? 2. How can I configure SCO OpenServer 5.0.7 mail system MMDF to ... (1 Reply)
Discussion started by: forumuser7
1 Replies

8. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies

9. Filesystems, Disks and Memory

SCO TCP/IP runtime System for SCO Unix

Hi everyone i have a question for all of you. It may be basic or it may be a good one. I recently aquired a copy of "SCO TCP/IP runtime System for SCO Unix" (thats what the disks say) and for the life of me i can not get it to load. i have tried opening the disk in linux and it can not determine... (0 Replies)
Discussion started by: Cerberus
0 Replies
Login or Register to Ask a Question