mailx usage doubt


 
Thread Tools Search this Thread
Operating Systems HP-UX mailx usage doubt
# 1  
Old 12-19-2011
Java mailx usage doubt

How to use mailx to send a mail by specifying the from: address,
considering that i am the root user
# 2  
Old 12-20-2011
man mailx



Code:
 -r address      Use  address  as  the  return  address  when
                     invoking  the  delivery  program.  All tilde
                     commands are disabled. This option  and  its
                     argument is passed to the delivery program.

# 3  
Old 01-05-2012
Tried that but i was unable to specify the FROM address.
However i found a solution.
It can be done by telnet ing to smtp on port 25
# 4  
Old 01-05-2012
Try this by using sendmail,

Code:
FROM=test@gmail.com
MailTo=temp@gmail.com
SUBJECT="Test Mail"
CONTENT="Test"
(
 echo "Subject: $SUBJECT"
 echo "From: $FROM"
 echo "To: $MailTo"
 echo "Content-Type: text/html"
 cat $CONTENT
) | /usr/lib/sendmail "$MailTo"

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mailx command doubt

hi all, I would need to add the description in the below syntax. let me know the below syntaxt how it can be changed to add the description in the below. ps -ef | grep "server" | mailx -s "servers currently which are running" operational@acel.com Server 62 -> Used for User acessing.... (14 Replies)
Discussion started by: arun888
14 Replies

2. Solaris

Doubt on non global zone dedicated-cpu usage ??

Hi All, While creating zone we will mention min and max cpu cores, If the non global zone uses only minimum cores at particular time What the other cores will do? Will it shared to global zone? If we do prstat in non global zone is it show only the allocated cpu cores for that zone or it... (0 Replies)
Discussion started by: vijaysachin
0 Replies

3. Solaris

doubt regarding process usage

Is there any ways to check the process usage for specific time interval. I tried with prstat but am not able to obtain the expected result and even with /var/adm/messages also. (12 Replies)
Discussion started by: rogerben
12 Replies

4. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

5. Solaris

doubt reg mailx command

Hi, Am trying to send mail from solaris host to my mailbox, but while executing mailx command am getting the follow error.Is this syntax corect? #mailx -s "subject" <myid> The flags you gave are used only when sending mail. (1 Reply)
Discussion started by: rogerben
1 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. Shell Programming and Scripting

Mailx usage

Hi Having the below four log files. logfile1 date time server ip 10/10/2008 10:10 ServerA xxx.xxx.xxx.xxx 10/10/2008 10:11 ServerA xxx.xxx.xxx.xxx 10/10/2008 10:12 ServerA xxx.xxx.xxx.xxx logfile2 date ... (2 Replies)
Discussion started by: karthikn7974
2 Replies

8. UNIX for Advanced & Expert Users

Mailx Doubt

Hi, I just wanted send corbon copy in mailx command, could you please assist me? I tried the below but it didn't work cat sample.txt|mailx -s "hi" -c xyz@gmail.com abc@gmail.com Shahnaz. (2 Replies)
Discussion started by: shahnazurs
2 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

doubt in mailx

Does not supplying a file to mailx cause it to run long? Cmd is like this: mailx -s "subject" recipient. Would the foll. cmd run fast: echo "content" | mailx -s "subject" recipient The recipient is a group id. Unix version:HP-UX B.11.11. Any help is appreciated. Thanks. (2 Replies)
Discussion started by: ranj@tcs
2 Replies
Login or Register to Ask a Question