hi,
i have a database table that automatically logs the errors in the database every 5 mins.
what i want to happen is to come up with a program using unix-c that gets all the information from the log table, i have a flag initially set to zero which means that the error is not yet sent, the... (2 Replies)
how can I send an email in UNIX, attach a file and cc a receipient?
i use the command below to attach a file (this works):
uuencode path/filename filename | mailx -s "subject" addr@host.com
here is how i cc a receipient (this also works):
i have a file named cc.lis and contains:
Hello... (2 Replies)
I have a requirement to send email to a group once I have done some tests. I tried the following from command line:-
mailx -s "Test REsults for today " myname@companyname.com <testresultfile.txt
but the email was not received by anyone
basically I followed the format:
mailx -s... (1 Reply)
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
I am using the following syntax to send an e-mail from Unix (Sun OS).
mail -s "hello" abc@yahoo.com
But, when I click enter after typing this command, its not exiting and after a while when I give ctrl+c it creates a dead.letter file in my $HOME dir. Can anyone please tell me, if I have to... (7 Replies)
Hi,
I know that we would be require HTML to change the font and color of the text of the output, if we wnt to send that through the email.
But I have managed to get below code, can someone look into it and let me know if i can acheive my requirement through this kind of code:
Following can... (9 Replies)
Hi,
I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.
Please advice on this.
(echo ${MESSAGE};uuencode "$FCP_OUT" "ERROR_REPORT.csv"; uuencode "$VALIDATION_RPT"... (1 Reply)
Hi All,
I need to send email from unix in the below format. But the email body is coming all in one single line.
How do i format the below text, so that the body of email is properly formatted.
Please help.
TO: <email id>
CC: <none>
BCC: <none>
Subject: Support: file GENERATION is... (3 Replies)
Hi,
I am trying to send an output of a script in an email.
I want to know if there is a way to modify the senders email not as my username on the host server but as one of the sender preset on outlook.
I was using
cat email.log | /bin/mailx -c cclist -r myemailid -s "subject" tolistids
... (4 Replies)
Discussion started by: gopajitmalakar
4 Replies
LEARN ABOUT HPUX
aliases
aliases(5) File Formats Manual aliases(5)NAME
aliases - aliases file for sendmail
SYNOPSIS DESCRIPTION
The command (which is the same as see sendmail(1M)) builds the sendmail alias database from a text file. The default text file is Local
addresses (local user names) are looked up in the alias database and expanded as necessary, unless the user name is preceded by a backslash
When the aliases file contains multiple entries for a given alias, only the last entry is used. Except when the processing option (the
send to me option) is set in the command or in the configuration file, the sender is not included in any alias expansions. For example, if
sends a message to and the expansion of includes the message is not delivered to
Each line of the alias text file must be of the form:
Mailing lists can be continued onto multiple lines. Each continuation line must begin with white space. Lines beginning with # are com-
ments.
A mailing-list is a comma-separated list of one or more of the following:
user-name Local user names occurring in alias expansions will themselves be looked up in the alias database unless
they are preceded by backslash
remote-address The remote address syntax understood by is configured in the configuration file, and typically includes the
RFC-822-style and the UUCP-style
filename This must be an absolute path name. appends a message to the file only if the directory in which it
resides is readable and searchable by all, and only if the file already exists, is not executable, and is
writable by all.
pipes the message as standard input to the specified command.
If command-line contains blanks, it must be enclosed in quotation marks (). For example,
reads filename for a list of recipient addresses and forwards the message to each. For example, an alias such
as:
would read for the list of addresses making up the group.
If a file named exists in a user's home directory and is owned by the user, redirects mail for that user to the list of addresses in the
file.
An address in a or file can be anything that can appear as a mailing-list in the alias text file.
can run programs or write to files using file. This is controlled by the file. If the owner of the file lacks a valid shell as listed in
file, the execution of such programs will be disallowed. The user can still execute such programs by placing the special string in the
file.
The alias database is examined before a recipient's file is examined. After aliasing has been done, local and valid recipients who have a
file in their home directory will have messages forwarded to the list of users defined in that file.
Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once.
Aliases defined in will NOT be expanded in headers from (see mailx(1)), but WILL be visible over networks and in headers from (see
mail(1)).
is only the raw data file. The actual aliasing information is placed into a binary format in the file using (see newaliases(1M)).
A command should be executed each time the file is changed in order for the change to take effect. Note that the NIS alias maps are gener-
ated by using which leaves and in the directory.
AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD.
FILES
User's mail forwarding file
raw data file for alias names
database of alias names
SEE ALSO mail(1), mailx(1), makemap(1M), newaliases(1M), sendmail(1M).
aliases(5)