Question: Can anyone help me out, we need to send mail through command line from Window server. We cannot use Blat as per security issue and neither do we want to install Exchange resource kit. We have our own Mail exchange server we can make use of it.

May be if any batch which could be run to access our SMTP mail server.

Thanks in advance.

Answer: 
Assuming you don't want to install any SMTP client whatsoever, and just want to use windows and perhaps batch files, you could use Telnet to connect to port 25 of your smtp server and send the commands manually.
[Here is an example of how to do this](http://www.activexperts.com/activemail/telnet/).  

Anyway, I personally would prefer to install some command line SMTP client such as Blat or [Bmail](http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm), instead of going into the hassle of directly interacting with SMTP.
This is an example to send mail from your Gmail address, for other servers you need to change the -smtp and -port

$securepass = ConvertTo-SecureString -String $yourpassword -A -F

$credential=new-object PSCredential $yourusername,$securepass

send-mailmessage -from "$yourusername@gmail.com" -to $recipient -subject "subject" -body "message" -smtpserver smtp.gmail.com -port 587 -usessl -credential $credential -encoding utf8

Here is the script that can send mail from your Gmail:
<https://gallery.technet.microsoft.com/scriptcenter/PC-Utilities-Downloader-355e5bfe>