to send an audit log to a recipient, and controlling the 'from' field.
This was done because I did not want the email to come from my unix account, but from a more generic account (which was actually a group account).
All of that said, I think a place to research would be if you even have a working email account on your unix login. What happens when you go into mailx? Does it come back and say "No mail for xxx" where xxx is your login?
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)