un4given1 Posted March 17, 2005 Share Posted March 17, 2005 Does anyone know of a free command prompt e-mail client? Or, does anyone know of a way to automate sending an email through Exchange? The idea being I want our server to e-mail me if the power ever goes out. I can do this VIA use of batter backup but the limitation is it simply lets you run a command.All help is appreciated. Link to comment Share on other sites More sharing options...
ravashaak Posted March 17, 2005 Share Posted March 17, 2005 If I'm understanding you correctly, then blat should do the trick: http://www.blat.net/ - Ravashaak Link to comment Share on other sites More sharing options...
wullieb1 Posted March 17, 2005 Share Posted March 17, 2005 You could try using telnet. Script it, i know it can be done. Link to comment Share on other sites More sharing options...
rc00451 Posted March 17, 2005 Share Posted March 17, 2005 Try googling for "mapisend.exe". This is a Microsoft Utility from the Exchange 2000 Resource Kit.Works for me ! Link to comment Share on other sites More sharing options...
rendrag Posted March 18, 2005 Share Posted March 18, 2005 pine! Link to comment Share on other sites More sharing options...
un4given1 Posted March 18, 2005 Author Share Posted March 18, 2005 I need something I can use in a manner like this...cmdmail to@somewhere.com "here's a message"Get the idea? Link to comment Share on other sites More sharing options...
bledd Posted March 18, 2005 Share Posted March 18, 2005 i could really do with this for work too.. Link to comment Share on other sites More sharing options...
KAndle Posted March 18, 2005 Share Posted March 18, 2005 Outlook Express from the command line...http://support.microsoft.com/?kbid=192341hope this helps... you could run it from a batch file using variables for input if the command is too long... Link to comment Share on other sites More sharing options...
wullieb1 Posted March 18, 2005 Share Posted March 18, 2005 I've been working on this today and here is the answerDownload a small, free tool called Telnet Scripting Tool. Actual exe is called TST10.EXE.Create a batch file called e-mail.cmd and enter the following commandstst10.exe /r:script.txt /o:output.txt /mCreate a text file called script.txt and enter the following commandsYour Mail Server 25wait " "send "helo your_domain_name\m"wait " "Send "Mail From:Sending_E-Mail_Address\m"wait " "Send "RCPT To:Receiving_E-Mail_Address\m"wait " "send "DATA\m"Wait " "Send "Subject: Test From telnet\mWullie wrote this.\m.\m"wait " "send "Quit\m"Please note that you will need to edit the items in red for this to work.I have attached the relevant files for you to use.Hope this helpsWullie Link to comment Share on other sites More sharing options...
bledd Posted March 18, 2005 Share Posted March 18, 2005 using mapisend..mapisend -i -r mail@mail.co.uk -s "I've just run the shared desktopbatch" -m "\\%computername%\Desktop"but I get an exchange settings confirmation window, is there any way I can send a 'enter' command to the active window? Link to comment Share on other sites More sharing options...
ravashaak Posted March 21, 2005 Share Posted March 21, 2005 I need something I can use in a manner like this...CODEcmdmail to@somewhere.com "here's a message"Did you actually take a look at blat? http://www.blat.net/To my eye, it does exactly what you are seeking. - Ravashaak Link to comment Share on other sites More sharing options...
Martin Zugec Posted March 21, 2005 Share Posted March 21, 2005 Why not create your own script file? Example one: using SMTP server'Notifications by SMTP'Soulin'11.11.2004Option ExplicitOn Error Resume NextDim objArguments, objNamedset objArguments = WScript.Argumentsset objNamed = WScript.Arguments.NamedCall OdoslanieMailuSet objShell = NothingWscript.Quit(0)Sub OdoslanieMailu Dim objEmail, objNetwork Dim strComputerName Set objEmail = CreateObject("CDO.Message") Set objNetwork = CreateObject("Wscript.Network") strComputerName = objNetwork.ComputerName With objEmail .From = "autoupdate@supersupport.org" .To = "notify@supersupport.org" .Subject = objNamed("update") & " updated." .Textbody = "blablabla" .Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.supersupport.org" .Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Configuration.Fields.Update .Send End With Set objEmail = Nothing Set objNetwork = NothingEnd Sub By using existing Outlook configuration (for Exchange for example):Option ExplicitDim objOutlook, objNameSpace, objMailDim strAddress, strSubject, strBody, strMailItemstrAddress = "test@supersupport.org"strSubject = "Test"strBody = "Test message"Set objOutlook = WScript.CreateObject("Outlook.Application")Set objNameSpace = objOutlook.getNamespace("MAPI")Set objMail = objOutlook.CreateItem(strMailItem)objMail.Subject = strSubjectobjMail.Body = strBodyobjMail.RecipIents.Add(strAddress)objMail.SendSET objOutlook = nothingSET objNameSpace = nothingSET objMail = nothing Is this what you were looking for? Link to comment Share on other sites More sharing options...
Martin Zugec Posted March 21, 2005 Share Posted March 21, 2005 Of course you can add ability to use parameters... If you dont know VBScript, I can do it for you. Link to comment Share on other sites More sharing options...
jaclaz Posted March 21, 2005 Share Posted March 21, 2005 SendMailhttp://www.diamondcs.com.au/index.php?page=consolejaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now