03-28-2013
It is difficult to say what is wrong without seeing what you did.
Did you put your file in attachment or body section? Can you post entire code?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
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
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
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
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
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
HI,
Whenever I tried to send mail using mailx in unix (Solaris 5.9), from field is missing from email messages. In short, sender's email address is missing from message. Anybody has any idea why this is happening?
Thanks,
NS. (5 Replies)
Discussion started by: nshah
5 Replies
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
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
MHMAIL(1) [nmh-1.5] MHMAIL(1)
NAME
mhmail - send or read mail
SYNOPSIS
mhmail [addrs ...] [-body text] [-cc addrs ...] [-from addr] [-subject subject] [-version] [-help]
DESCRIPTION
mhmail is intended as a replacement for the standard Berkeley mail program (mail or mailx), which is compatible with nmh. This program is
intended for the use of programs such as cron, which expect to send mail automatically to various users. It is also used by various nmh
commands to mail various error notifications. Although mhmail can be used interactively, it is recommended that comp and send be used
instead to send messages.
When invoked without arguments, it simply invokes inc to incorporate new messages from the user's maildrop. When one or more users is
specified, a message is read from the standard input and spooled to a temporary file. mhmail then invokes post with the name of the tempo-
rary file as its argument to deliver the message to the specified user.
The -subject subject switch can be used to specify the "Subject:" field of the message.
By default, mhmail will read the message to be sent from the standard input. You can specify the text of the message at the command line
with the -body text switch. If the standard input has zero length, mhmail will not send the message. You can use the switch -body "" to
force an empty message.
Normally, addresses appearing as arguments are put in the "To:" field. If the -cc switch is used, all addresses following it are placed in
the "cc:" field.
By using -from addr, you can specify the "From:" header of the draft. Naturally, post will fill-in the "Sender:" header correctly.
FILES
/usr/bin/mh/inc Program to incorporate maildrop into folder
/usr/lib/mh/post Program to deliver a message
/tmp/mhmail* Temporary copy of message
SEE ALSO
inc(1), post(8)
DEFAULTS
None
CONTEXT
If inc is invoked, then inc's context changes occur.
MH.6.8 11 June 2012 MHMAIL(1)