Mail not working

Hello All,

we have got a new linux server where the

mailx/sendmail/uuencode

doesn't seem to be working.

The system admin guys have told me that they have configured the mail on port 25, the servers are in very secured zone which dont have internet connection hence i'm not able to understand how the email works without internet, could anyone help me ?

NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"

nothing happens after this command.

[root@server1 bin]# mailx -s "test" myname@mydomain.com
^C
(Interrupt -- one more to kill letter)

Please help me how to test the email as i need to configure some alerts.

Hi,
mailx is waiting for you to type the letter, thats why nothing happens after the command.
To finish a letter enter a single period ( . ) as only character in a line.
If you wish to send an empty letter redirection from /dev/null is a common technique I use, which should send the mail immediately without waiting for you to enter the mail text:

mailx -s "test" myname@mydomain.com </dev/null