Sponsored Content
Operating Systems Solaris Mailx sending but not receiving Post 302936455 by ChicagoBlues on Wednesday 25th of February 2015 04:29:55 PM
Old 02-25-2015
Mailx sending but not receiving

Hi,

I need help with mailx. When I run the below mailx command, it works fine because the exit code is fine, and the message is sent to /usr/mail/<id>

Code:
echo "This is a test message" | mailx -s "Test" <my email address>

My question is, how do I get it to reach my email address (on outlook and not on /usr/mail)?

Thanks.

Last edited by Don Cragun; 02-25-2015 at 08:09 PM.. Reason: Add CODE tags.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sending email from mailx

hi can i know how to use mailx to send email to my lotus email account? i wan to send a file in a directory as an attachment and then email to lotus. can show me the command line to do it? thanks a lot (1 Reply)
Discussion started by: legato
1 Replies

2. Shell Programming and Scripting

sending mail through mailx

while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
3 Replies

3. Shell Programming and Scripting

Sending attachement using mailx

Hi I tried reading docs from this forum and googled it...but i couldnt get the answer for attaching a document in mail. I need it to be the actual attachement not adding the content of the file to the body of the mail.. i used uuencode ...to encode the file but it is coming as a junk... (4 Replies)
Discussion started by: aemunathan
4 Replies

4. AIX

Mailx Not sending

How can I check to see how/why my mailx program is not sending? /var has enough room. -Thanks ---------- Post updated at 08:48 AM ---------- Previous update was at 08:35 AM ---------- I tested the mailx to send with this command: echo "This is going to be body of the mail" |mailx... (1 Reply)
Discussion started by: tfort73
1 Replies

5. Shell Programming and Scripting

sending variable value via mailx

Hi all, I need to send a variable value in the script through mailx. Please find the script below but its not working. agents.sh: agents=`grep "Tot Agents " snapshot.dbm` if (( $? == 0 )); then mailx abc@gmail.com $agents fi (3 Replies)
Discussion started by: db2cap
3 Replies

6. Programming

Sending and Receiving data between Client, HTTP Proxy, and Remote Server

I am having problems receiving data from a remote server. It seems that I can send an HTTP request to any host such as http://www.google.com, but I can't get a reply. I'm sending the host a HTTP 1.0 request that is formatted as such: GET / HTTP/1.0 Host: http://www.google.com Connection:... (0 Replies)
Discussion started by: shubham92
0 Replies

7. Shell Programming and Scripting

Receiving NDR with mailx

We use mailx (HP-UX) sending emails to list of external parties. When their email address is wrong or mailbox is full, how can I receive Non-Delivery Report (NDR) in a specific internal emailbox being monitored? Please help. Thanks (0 Replies)
Discussion started by: winwin
0 Replies

8. UNIX for Beginners Questions & Answers

Need help sending attachment via mailx

Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx. The command I use is $ mailx -s "Subject" user@blah.com < attachment.txt but everytime I do that it would say Cannot open attachment.txt I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
biff(1) 						      General Commands Manual							   biff(1)

NAME
biff - Notifies users when mail arrives SYNOPSIS
biff [y | n] DESCRIPTION
The biff command informs the system whether you want to be notified when mail arrives during the current terminal session. The following command enables notification: biff y The following command disables notification: biff n When mail notification is enabled, the From: and Subject: header lines and up to the first five lines of the message are displayed. The total display is 560 characters, or seven lines terminated by newline characters, whichever occurs first. The biff y command is often included in the $HOME/.login or $HOME/.profile file to be executed each time you log in. The biff command operates asynchronously. For synchronous notification, use the MAIL variable of sh or ksh, or the mail variable of csh. EXAMPLES
To display the current setting, enter: biff To be notified during the current terminal session whenever mail arrives, enter the following in your $HOME/.login or $HOME/.profile file: biff y FILES
Read by login shell (after login. User profile. SEE ALSO
Commands: comsat(8), csh(1), ksh(1), mail(1), mailx(1), Bourne Shell sh(1b), POSIX Shell sh(1p) biff(1)
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy