03-11-2004
mailx reads initialization commands first from /usr/share/lib/mailx.rc and then from $HOME/.mailrc. But the second file can't be read if HOME is not set. Could your cron job have clobbered the HOME variable? cron will set HOME by default.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello everybody
I already read all the posts about "how to send email" but i dont find the solution, i need to send a mail via commands. Into the mail i need to attach a file.txt how can i do that?
Thanx.
Lestat (2 Replies)
Discussion started by: Lestat
2 Replies
2. Solaris
Hello I am new user on solaris...
I need to configure my solaris to be able to send mails...
I know mailx command
mailx -s hello address@address.com
but I get an error...
you have mail in /var/mail/root
# hello... User unknown
/dead.letter... Saved message in /dead.letter
what... (10 Replies)
Discussion started by: amon
10 Replies
3. UNIX for Advanced & Expert Users
now, i need to send a file to an email address but i cant seem to find a place on the internet that tells me that specifically. sites i came across just happens to be beating aroung the bush too much.
i'm running a SUNOS box 5.6.
can someone please give me the proper syntax. either for mailx... (2 Replies)
Discussion started by: Terrible
2 Replies
4. UNIX for Advanced & Expert Users
The following output has a space as the Field Separator.
I need:
$1 Set the field width to 15 then zero-fill to the right.
$6 Set the field width to 15 then zero-fill to the left.
01-10016 1000 MV010 20090708 12003 $NK0015101 01
01-100161 12000 MV070 20090708 12003 $NK0015201 01... (6 Replies)
Discussion started by: talk2pawee
6 Replies
5. UNIX for Advanced & Expert Users
Hello,
I am C. and I would like to send mail with Sendmail to my hotmail-account.
But this doesn't work, the mail always returns in the file:
/var/spool/mail/root.
Probably there is something wrong with my SmartHost.
I configured it like:
define ( 'SMART_HOST','smtp.direct-adsl.be')
-->... (1 Reply)
Discussion started by: caroline
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I am afraid that I goofed up my mailing system.
I have an Ubuntu 9.10 system
$ uname -smor
Linux 2.6.31-14-generic x86_64 GNU/Linux
I am wanting to receive cron job mails. I noticed that cron jobs were trying to send mail to sendmail. I had installed ssmtp so I could send mail... (1 Reply)
Discussion started by: Narnie
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am using centOS.
When I try to redirect STDOUT to a file, it ends up in getting some funny characters. For example ...
STDOUT of the command as follows.
$ ls
H3k27me3
H3k36me3
H3k4me1
H3k4me2
H3k4me3
H3k9ac
H4k20me1
$ ls >test
$ cat test
^ (1 Reply)
Discussion started by: Chulamakuri
1 Replies
8. UNIX for Dummies Questions & Answers
I recently generated myself the following error when attempting to use the Unix mail command:
The flags you gave make no sense since you're not sending mail.
There is a recent thread about this issue here in unix.com (with a title very much like this thread's title), but it was closed... (2 Replies)
Discussion started by: Clovis_Sangrail
2 Replies
9. Red Hat
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Discussion started by: RedSpyder
1 Replies
LEARN ABOUT OPENSOLARIS
rcvpack
RCVPACK(1) [nmh-1.5] RCVPACK(1)
NAME
rcvpack - append message to file
SYNOPSIS
/usr/lib/mh/rcvpack file [-mbox] [-mmdf] [-version] [-help]
DESCRIPTION
The rcvpack program will append a copy of the message to the file listed on its command line.
If the -mbox switch is given (the default), then the messages are separated using mbox (uucp) style delimiters. This is the format used by
most mail clients (elm, mailx, etc.).
If the -mmdf switch is given, then the messages are separated by mmdf style delimiters. Each message in the file is separated by four
CTRL-A's and a newline.
rcvpack will correctly lock and unlock the file to serialize access to the file, when running multiple copies of rcvpack .
In general, its use is obsoleted by the file action of slocal, although it might still have occasional uses in various shell scripts.
FILES
/etc/nmh/mts.conf nmh mts configuration file
SEE ALSO
rcvdist(1), rcvstore(1), rcvtty(1), slocal(1)
BUGS
Only two return codes are meaningful, others should be.
MH.6.8 11 June 2012 RCVPACK(1)