09-14-2010
The body of an email --mailx
hi,
After run the script, i got the following line and haven't receive any mail
Quote:
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a KSH script that runs a SQL script, then sends an email to me indicating that it's completed. I would like to modify it so that the body of the email will contain a count of the number of records Added, Changed, Deleted as a result of the SQL script.
Here's what I was trying, but it's... (2 Replies)
Discussion started by: dstinsman
2 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am totally dummy as far as UNIX is concerned, so please apologize.
I was just given the syntax to send multiple attachments with a body.txt message, it works great and we use it a lot.
Now, my question is : can we have the body to be a Binary file (like a Word Document for example)?
... (5 Replies)
Discussion started by: CKIRCH
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm working on Solaris 9 (SPARC) and I like to send an html body message to our users when something happen.
The problem is that I can't find how to give mime type information with mailx.
To be recognized as html I need to put in email header this information:
Mime-Version: 1.0... (2 Replies)
Discussion started by: gbagagli
2 Replies
4. Shell Programming and Scripting
encoding type for images? (5 Replies)
Discussion started by: biswasbaishali
5 Replies
5. Shell Programming and Scripting
Dear all-
I have a requirement to send an email via email with body content which looks something below-
Email body contents
--------------------
RequestType: Update
DateAcctOpened: 1/5/2010
Note that header information and data content should be normal text..
Please advice on... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Is there a way to suppress this message?
Null message body; hope that's ok
My email string is:
mailx -s "This is my subject" myemail@domain.com < /dev/null
It's just an annoyance to me that I would like see go away. (3 Replies)
Discussion started by: bbbngowc
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
Discussion started by: aliaszero
2 Replies
8. Shell Programming and Scripting
Hi,
I'm a perl developer. I need to attach a file from my perl cgi script and send mail to our users whoever using our website. I have used mailx command to attach a file.. it is working fine for me. The problem I'm facing is I'm not getting body of the mail.
I have a function called... (0 Replies)
Discussion started by: bheeshmaraja
0 Replies
9. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
10. Shell Programming and Scripting
Hi
Below works and I do receive the email.
echo "Unable to send file as attachment as File Size is too big i.e. more than 35 MB. Please download from user1@myserv0131:/web/admin/email/serv0131.mybank" | mailx -s "Attachment too BIG | download from the server" mohtashim@gmail.com... (1 Reply)
Discussion started by: mohtashims
1 Replies
MAIL.MAILUTILS(1) User Commands MAIL.MAILUTILS(1)
NAME
mail.mailutils - process mail messages
SYNOPSIS
mail.mailutils [OPTION...] [address...]
mail.mailutils [OPTION...] [OPTION...] [file]
mail.mailutils [OPTION...] --file [OPTION...] [file]
mail.mailutils [OPTION...] --file=file [OPTION...]
DESCRIPTION
GNU mail -- process mail messages. If -f or --file is given, mail operates on the mailbox named by the first argument, or the user's mbox,
if no argument given.
-A, --attach=FILE
attach FILE
-a, --append=HEADER: VALUE append given header to the message being sent
--[no-]alternative
force multipart/alternative content type
--attach-fd=FD
attach from file descriptor FD
--content-filename=NAME
set the Content-Disposition filename parameter for the next --attach option
--content-name=NAME
set the Content-Type name parameter for the next --attach option
--content-type=TYPE
set content type for subsequent --attach options
-E, --exec=COMMAND
execute COMMAND
-e, --exist
return true if mail exists
--encoding=NAME
set encoding for subsequent --attach options
-F, --byname
save messages according to sender
-H, --headers
write a header summary and exit
-i, --ignore
ignore interrupts
-M, --[no-]mime
compose MIME messages
-N, --nosum
do not display initial header summary
-n, --norc
do not read the system mailrc file
-p, --print, --read
print all mail to standard output
-q, --quit
cause interrupts to terminate program
-r, --return-address=ADDRESS
use address as the return address when sending mail
-s, --subject=SUBJ
send a message with the given SUBJECT
--[no-]skip-empty-attachments
skip attachments with empty body
-t, --to
read recipients from the message header
-u, --user=USER
operate on USER's mailbox
Global debugging settings
--debug-level=LEVEL
set Mailutils debugging level
--[no-]debug-line-info show source info with debugging messages
Configuration handling
--config-file=FILE
load this configuration file; implies --no-config
--config-lint
check configuration file syntax and exit
--config-verbose
verbosely log parsing of the configuration files
--no-config
do not load site and user configuration files
--no-site-config
do not load site-wide configuration file
--no-user-config
do not load user configuration file
--set=PARAM=VALUE
set configuration parameter
Informational options
--config-help
show configuration file summary
--show-config-options
show compilation options
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
REPORTING BUGS
Report bugs to <bug-mailutils@gnu.org>.
GNU Mailutils home page: <http://mailutils.org>
General help using GNU software: <http://www.gnu.org/gethelp/>
COPYRIGHT
Copyright (C) 2007-2017 Free Software Foundation, inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The complete GNU mailutils documentation is maintained as a Texinfo manual. If the mailutils-doc package is installed, the command
info mailutils
should give you access to the complete manual.
You can also find this manual online in the GNU mailutils webpage:
https://www.gnu.org/software/mailutils/manual/index.html.
Please note this manpage was automatically generated by the Debian mailutils packagers. Do not file bugs for its content to the GNU Mailu-
tils upstream authors.
FSF
November 2017 MAIL.MAILUTILS(1)