The command:
works while the command:
hangs because the mailx command reads the text to be sent as the body of your message from standard input. When you type the second command above it is sitting there waiting for you to type in the text to be sent.
If you type in the text that you want to be the body of your message after entering the 2nd command above and then hit Ctl-D to terminate the message, the command should do what you seem to expect.
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Hi All
• Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this?
• But I have successfully installed sendmail-cf pkg in the server box
• But that is not sufficient we also need to install sendmail pkg
• Help is... (2 Replies)
I have several HP/UX nodes running Sendmail 8.13 ...some work fine, some don't.
When an Email is coming in, the 'DATA' command never ends. The other side of the connection gets to the point where it enters the '.' on a line by itself, but sendmail doesn't accept it...if fact it keeps on holding... (8 Replies)
I need to reconfigure Sendmail to strip the SMTP email addresses from all email and replace them with a single address used for testing purposes.
I have a vended application hosted on Solaris 10 servers. I have access to support the application framework (IBM WebShere Application Server 6.1),... (1 Reply)
Hi,
Can anyone kindly provide some information about how to populate the subject field of the email while using the sendmail utility ? Itried the following command line argument :
echo -e "Body of the email" | /usr/lib/sendmail -f from@from.com -t to@to.com -s " Subject of the email"
... (4 Replies)
Hi ,
I'm using sendmail command to send a email.
To send a email sendmail taking 3minutes to complete the process.
Is there any configuration needs to be done in server or another solution is there to resolve this issue.
Thanks in Advance.
Regards
Latika (1 Reply)
Hi everyone,
I'm trying to send an email on unix using sendmail command. For setting the priority to high I use:
X-Priority: 1
And it works on HP but when I tried it on AIX the email is sent but no priority!!
Anyone can help me
Thanks in advance,
Hiposh (3 Replies)
I have a longstanding issue on my CentOS 5.6 VM where I am unable to send email from my PHP application.
This is the last bunch of lines from my /var/log/maillog file.
Feb 14 10:29:16 dev53 sendmail: s1EATEEo004637: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to... (2 Replies)
Hi All,
Sorry, for the double posting. Don't know how to move to a different forum.
I am very new to Unix. I have a test server running FreeBSD 10.1 and SendMail 8.14.9.
I need to filter incoming emails based on the sender's email address or domain and forward them to another address on a... (1 Reply)
Discussion started by: simplemind
1 Replies
LEARN ABOUT PHP
mhmail
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)