Sponsored Content
Full Discussion: Unix mailx question.
Top Forums UNIX for Dummies Questions & Answers Unix mailx question. Post 302273055 by nshah on Friday 2nd of January 2009 12:14:00 PM
Old 01-02-2009
mailx -s "mail test" xxx@yyy.com < /dev/null

Below is the message that I got in outlook(my email account).

From:

To: xxx@yyy.com
Cc:
Subject: mail test

So basically from field is empty/missing.

Thanks,
Nishit.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mailx question

Hy all One application has a script with this line : /usr/bin/mailx -f..... - etc etc .... is there any option to set the charset to various value while using mailx ?? thanks in advance Olivier (3 Replies)
Discussion started by: Olivier
3 Replies

2. UNIX for Dummies Questions & Answers

mailx question

Hi-- My question is why won't this line of code work in the UNIX script that I'm running.... echo "A MESSAGE ON $todaysdate." | ${SYSBIN}/mailx -s "TEST EMAIL" email address (1 Reply)
Discussion started by: greenguy5
1 Replies

3. Shell Programming and Scripting

mailx and uuencode question

I have this code below that works well. I also want to attach a logfile to the email. The first part of this code is the body of the email. echo "The size of $dirname/$f1 size = $f1size, and $dirname/$f2 = $f2size'" | mailx -s "Error with file sizes on $HOST Server" xyz@company.com ... (1 Reply)
Discussion started by: ssmiths001
1 Replies

4. UNIX for Dummies Questions & Answers

Question on mailx

Hello there: I want to send an e-mail from AIX using mailx. I'm executing the following script (-> witch doesn't work's): ----------------------------------------------- #!/bin/sh echo "<html><body><a href="http://www.myhomepage.com">Link</a></body></html>" >> LOG sleep 5 !... (3 Replies)
Discussion started by: Felix2511
3 Replies

5. Shell Programming and Scripting

MAILX question

Hello, I am using the following mailx command wich works well. I want to also include output from a log file in the mail body. How can this be done? echo `date +"%m/%d/%Y %T"` "$P: The Purge Routine Has Started." | mailx -s "The Purge RoutineHas Started: `date`" $EMAIL This script is... (3 Replies)
Discussion started by: dkranes
3 Replies

6. Shell Programming and Scripting

mailx question

hello in the middle of my sh script, I am using mailx like this: mailx -s "Sybase Installation on $i" x@abc.com < /net/share/shared/install.output.$i "i" stands for the remote server such as SIROE I am expecting to receive an email with subject "Sybase Installation on SIROE" and... (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

7. UNIX for Dummies Questions & Answers

question regarding mailx

I have some scripts that send out email alerts using mailx. the email looks like it is coming from the unix ID and server that is sending the email. I am wondering if there is a way through mailx to have the mail still look like it is coming from the unix id and server sending the message,... (3 Replies)
Discussion started by: jayjabour
3 Replies

8. Shell Programming and Scripting

Another mailx question

I have a script that runs every night that is supposed to send a log file to a list of email addresses. When I run this command from the command prompt, it works successfully: mailx -s "Filename to send" "`cat email.address`" < $outfile The email.address file contains the list of email... (4 Replies)
Discussion started by: Drenhead
4 Replies

9. Shell Programming and Scripting

mailx Question

I am using mailx command. It works fine. And the receiver gets 'From' information as MySelf@Sent_server. This 'Sent_server' is picked up from /etc/hosts - third alias for loghost (dev.abc.ltd). The entry is as under 11.22.33.44 dev_sys dev_system dev.abc.ltd loghost The issue is that is there... (4 Replies)
Discussion started by: Soham
4 Replies

10. Shell Programming and Scripting

Another mailx question

Hi I am trying to send an html file as an attachment from AIX server and recieve it using Outlook 2007 client. I tried every possible command, such as: uuencode file file | mailx -s "subject" me@mydomain.com uuencode -m file file | mailx -s "subject" me@mydomain.com All of them give me: ... (6 Replies)
Discussion started by: nimo
6 Replies
WARNQUOTA.CONF(5)						File Formats Manual						 WARNQUOTA.CONF(5)

NAME
warnquota.conf - configuration for warnquota SYNOPSIS
/etc/warnquota.conf DESCRIPTION
The warnquota.conf file stores a configuration for warnquota(8) tool which is used to notify a user or a group who exceeds its disk quota limits. The syntax is an option name followed by an equal sign and the option value. White space characters surrounding the option names and val- ues are allowed. Empty lines or lines starting with a hash sign or a semicolon are ignored. An option value can but does not have to be quoted. The value can span across multiple lines provided each previous line ends with a back- slash. Some option values can contain formatting sequences which will be expanded to their respective values. Following sequences are recognized: %d domain name %h host name %i, %s user or group name %% literal % character | new-line character OPTIONS
CC_BEFORE Send to copy-carbon address only when a user has less than specified grace time left. Value is a number followed by a time unit. Known units are seconds, minutes, hours, and days. Example: 5 days CC_TO An e-mail address to put into copy-carbon (CC:) recipient header. Default value is root. CHARSET Defines character set for sent e-mails. Default value will be current locale character set used when executing warn- quota command, if locale is not either C or POSIX. Otherwise no character set will be specified in the e-mails. FROM Defines From: e-email address. Default value is support@localhost. GROUP_MESSAGE A text sent as an e-mail body if a group exceeds its limits. This option recognizes formatting sequences. GROUP_SIGNATURE A signature text appended to notification for a group. Default value is a general explanation utilizing SUPPORT and PHONE values. This option recognizes formatting sequences. LDAP_BASEDN Base distinguished name for LDAP queries. LDAP_BINDDN Bind distinguished name for LDAP queries. LDAP_BINDPW Bind password for LDAP queries. LDAP_DEFAULT_MAIL_DOMAIN Default e-mail address domain of searched user if given LDAP attribute does not specify any. LDAP_HOST LDAP server name to connect to if LDAP_URI is not defined. LDAP_MAIL A boolean controlling if LDAP has to be used to look up user's e-mail address. Possible values are true and false. Default value is false. LDAP_MAIL_ATTRIBUTE The LDAP attribute which holds user's e-mail address. LDAP_PORT LDAP server port number to connect to if LDAP_URI is not defined. LDAP_SEARCH_ATTRIBUTE The LDAP attribute which holds user's ID to look up. LDAP_URI The URL of LDAP server to use to search user's e-mail addresses. This option takes preference over LDAP_HOST and LDAP_PORT. Example: ldaps://example.com:389/ MESSAGE A beginning of text sent as an e-mail body if a user exceeds his limits. This option recognizes formatting sequences. MAIL_CMD The command to execute to send an e-mail. The e-mail text including all headers is passed to the standard input of the command. Default value is /usr/lib/sendmail -t. MAILDEV The device with disk quotas to exclude from sending notifications if there are exceeded limits. This option should identify the device where mail boxes are stored to prevent from bouncing the warnquota notification by local MDA due to no space for storing new e-mails. Special value any denotes all devices. PHONE The telephone contact to the user support. Default value is (xxx) xxx-xxxx or (yyy) yyy-yyyy. SIGNATURE The end of e-mail body if a user exceeds its limits. Default value is a general explanation utilizing SUPPORT and PHONE values. This option recognizes formatting sequences. SUBJECT The text to put into Subject: header. Default value is Disk Quota usage on system. SUPPORT The contact to the user support. Default value is support@localhost. EXAMPLE
# comment FROM = root@example.com SUPPORT = support@example.com PHONE = 1234 FILES
/etc/warnquota.conf configuration for warnquota(8) SEE ALSO
warnquota(8). WARNQUOTA.CONF(5)
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy