mailx query


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mailx query
# 8  
Old 01-23-2012
I see. I don't believe there is a way to hide the account behind the name but then again, I've never tried to do it that way.
# 9  
Old 01-23-2012
You could try using mutt, It allows seting the REPLYTO address, eg:

Code:
REPLYTO="ITSupport"
export REPLYTO
echo "Message" | mutt -s "subject" -a /file/to/attach.txt RECIPIENT...

# 10  
Old 01-23-2012
Hi,
I am using AIX OS.
I dont think so Mutt can be used with AIX.
Is there any other option available?
# 11  
Old 01-23-2012
We have mutt running on AIX 5.3 try /opt/freeware/bin/mutt

Or you can download from the IBM toobox: http://www-03.ibm.com/systems/power/...lbox/date.html
# 12  
Old 01-23-2012
Hi,
I couldn't find such file with my OS.
# 13  
Old 01-23-2012
You could try imbedding the Reply-To: or From: headers in the subject

Try:

Code:
echo "Message" | mailx -s "Subject
Reply-To: ITSupport" cnraja@localhost.com

or

Code:
echo "Message" | mailx -s "Subject
From: ITSupport" cnraja@localhost.com

Otherwise you may just have to use no-reply@domain.com and hope your receipents are smart enough to realise.

Last edited by Chubler_XL; 01-23-2012 at 11:17 PM.. Reason: Formatting
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

2. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

3. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

4. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

5. UNIX for Advanced & Expert Users

mailx

We are using mailx to send email alerts. On occasions, it is updating our Distribution list with the mesage content. The following is the relevant portion of the script :- MAILGROUP=`more $MDS/feeds/alerts/distribution.lst` export MAILGROUP echo " " | mailx -s "MDS Alert - Refresh Complete"... (6 Replies)
Discussion started by: Paul Byrne
6 Replies

6. UNIX and Linux Applications

MailX

Hi, I am not able to send direct mails from our unix server to our lotus notes id. It was fine until we upgrade our Lotus notes server. What are the changes need to add when we upgrade Lotus notes. Please advice. It run in sh file This is the statement uuencode $RTDIR/$filename... (0 Replies)
Discussion started by: rajani_p
0 Replies

7. Solaris

Using Mailx

I am new to Unix and i want to know when using mailx can we change the sender's name from the default one. (3 Replies)
Discussion started by: blackeyed
3 Replies

8. HP-UX

mailx help

Hi, I have a shell script which has code like: cat /tmp/MAIL_PCSD | mailx -m -s " PEWA Order Acknowledgement" $M1 and M1 is nothing but this M1=`echo $x | awk ' {print $3}' ` If I pass absolute email address to $M1 it works fine. But, the thing is that it gets $M1 by reading some... (3 Replies)
Discussion started by: isingh786
3 Replies

9. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

10. Shell Programming and Scripting

Mailx

I am trying to write a shell script using the mailx command. My problem is that I want to send an email address in the CC: field. What option can I use with mailx to accomplish this. Any help would be very appreciative. (1 Reply)
Discussion started by: skammer
1 Replies
Login or Register to Ask a Question