11-06-2003
that looks really great if it does what i think it does !! [EDIT: it does! ]
i will post back what i come up with, and thanks for the help O.P.!!
Last edited by norsk hedensk; 11-06-2003 at 06:57 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
How do I send an email using malix where email address contains a #.
I have a email address like this : #test@test.com
I want to send email like malix -s "TEST" #test@test.com < SOMEFILE
I tried \# but doesn't work. Please let me know how we can achieve this?
I am in... (1 Reply)
Discussion started by: jingi1234
1 Replies
3. Solaris
Hello everyone
I have a problem and I need your help:
I have a Solaris 10 and Solaris 8 UNIX Servers, and Linux Centos4 as email server.
I need send an email from Solaris servers preferably using Centos4 email server.
I have no mail service configured in my Solaris computers (1 Reply)
Discussion started by: aflores
1 Replies
4. UNIX for Dummies Questions & Answers
hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version).
i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010).
a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies
5. Shell Programming and Scripting
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Discussion started by: jay02
8 Replies
6. Windows & DOS: Issues & Discussions
Oracle Linux 5.6 x-86-64 (Red Hat derivitive)
I have several shell scripts that capture output to a log file, then use that log file as the source of an email. For a very simplified example:
echo Today is `date` >> $logfile
/bin/mail -s "$subject" "$sendto" < $logfile
(yes, $subject... (6 Replies)
Discussion started by: edstevens
6 Replies
7. Shell Programming and Scripting
Hi,
I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits):
echo "HELO $host.$domain"
sleep 1
echo "mail from: vdrreport@$domain"
sleep 1
echo "rcpt to:$mailto"
sleep 1
echo "data"
sleep 1
echo "subject: $host VDR-Report... (2 Replies)
Discussion started by: cognito
2 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
When i use the single quotes around the variables i am getting each line in the array as seperate in the email as shown in code2 & output2. But i don't want those single quotes to be printed but each array element should be printed as seperate line as when i remove those single quotes... (1 Reply)
Discussion started by: Ariean
1 Replies
9. UNIX for Dummies Questions & Answers
Hi friends,
I have written a shell script which send a report to email address everyday.
The report is generated on UNIX server every day, Generated report is sent to 25 users through cron.
All 25 users have set different screen resolution for their monitor. The email looks wel formatted for... (4 Replies)
Discussion started by: Nakul_sh
4 Replies
10. Shell Programming and Scripting
I have tried below email method and i am getting every thing in single line . i have put echo to provide space, but it is not helping
my code
(
echo "From: $FROM"
echo "To: $MAILTO"
echo "CC: $CC"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo 'Content-Type: multipart/mixed;... (6 Replies)
Discussion started by: mirwasim
6 Replies
LEARN ABOUT FREEBSD
mail.local
MAIL.LOCAL(8) System Manager's Manual MAIL.LOCAL(8)
NAME
mail.local - store mail in a mailbox
SYNOPSIS
mail.local [-7] [-B] [-b] [-d] [-D mbdb] [-l] [-s] [-f from|-r from] [-h filename ] user ...
DESCRIPTION
Mail.local reads the standard input up to an end-of-file and appends it to each user's mail file. The user must be a valid user name.
The options are as follows:
-7 Do not advertise 8BITMIME support in LMTP mode.
-B Turn off the attempts to notify the ``biff'' service.
-b Return a permanent error instead of a temporary error if a mailbox exceeds quota.
-d Specify this is a delivery (for backward compatibility). This option has no effect.
-D mbdb Specify the name of the mailbox database which is used to look up local recipient names. This option defaults to "pw", which
means use getpwnam().
-f from Specify the sender's name.
-l Turn on LMTP mode.
-s Turn off the fsync(2) call that forces the mailbox to be committed to disk before returning a "success" status.
-r from Specify the sender's name (for backward compatibility). Same as -f.
-h filename
Store incoming mail in filename in the user's home directory instead of a system mail spool directory.
The next options are only available if mail.local has been compiled with -DHASHSPOOL.
-H hashtypehashdepth
Select hashed mail directories. Valid hash types are u for user name and m for MD5 (requires compilation with -DHASHSPOOLMD5).
Example: -H u2 selects user name hashing with a hash depth of 2. Note: there must be no space between the hash type and the depth.
-p path
Specify an alternate mail spool path.
-n Specify that the domain part of recipient addresses in LMTP mode should not be stripped.
Individual mail messages in the mailbox are delimited by an empty line followed by a line beginning with the string ``From ''. A line con-
taining the string ``From '', the sender's name and a time stamp is prepended to each delivered mail message. A blank line is appended to
each message. A greater-than character (``>'') is prepended to any line in the message which could be mistaken for a ``From '' delimiter
line (that is, a line beginning with the five characters ``From '' following a blank line).
The mail files are exclusively locked with flock(2) while mail is appended, and a user.lock file also is created while the mailbox is
locked for compatibility with older MUAs.
If the ``biff'' service is returned by getservbyname(3), the biff server is notified of delivered mail.
The mail.local utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT
TZ Used to set the appropriate time zone on the timestamp.
FILES
/tmp/local.XXXXXX temporary files
/var/mail/user user's default mailbox directory
/var/mail/user.lock lock file for a user's default mailbox
SEE ALSO
mail(1), flock(2), getservbyname(3), comsat(8), sendmail(8)
WARNING
mail.local escapes only "^From " lines that follow an empty line. If all lines starting with "From " should be escaped, use the 'E' flag
for the local mailer in the sendmail.cf file.
HISTORY
A superset of mail.local (handling mailbox reading as well as mail delivery) appeared in Version 7 AT&T UNIX as the program mail.
$Date: 2013-11-22 20:51:51 $ MAIL.LOCAL(8)