Send mail using SMTP

Hi I need to send email from batch script, using SMTP from my exchange server. Can any one send me command line of that should be non interactive.

I did using MAPISEND, but i should not use it for some reasons. I have to send this using SMTP for Microsoft Exchange Server.

mapisend -u "Outlook" -p pass1234 -r mail1@mail.com -s "Connection Failed" -m "Couldn't connect to SFTP server"

Can any one send me the command line for SMTP?

--
Thanks,
Mohan

mohantmk,

You can use the DOS prompt and telnet your SMTP server like this

  1. telnet < SMTP Server IP > 25

from there you

  1. type ehlo < the domain name > you will receive prompt

google about STMP commands ( MAILTO / MAIL from/ DATA)

cheers!

It Works! Thanks for the solution.