Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 816
  • Last Modified:

How do you send email using DOS without telnet

Our oracle DBA's want to script database alerts that will send email notifications using simple DOS batch files.  Since one cannot use telnet in a batch file, I am wondering how else it can be done.
0
coco_parsifal
Asked:
coco_parsifal
  • 5
  • 3
  • 2
  • +2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Command line mailing utilities.  Or VBScript.  Personally, I like the mailing utilities - I use called GBMailer - you can download it from here:
http://freeware.brothersoft.com/internet/e-mail/gbmailer_5026.html
0
 
coco_parsifalAuthor Commented:
Oh they've tried windmail and pl/sql and can't get them to work.  Honestly, I THOUGHT you had to have a utility to do it.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Not familiar with either of those products.  You DO need an SMTP server for gbmailer - it's not like some viruses - that is, providing it's own SMTP server.  But I've used it often and have several scripts using it.  I love it.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
BrentDevOpsCommented:
telnet is required to send email via batch..... your probably out of luck on that one.  I dont know about oracle, but i do know that MSSQL has a stored proc that will do it.

You can manually send an email by doing the following

telnet server.com 25
helo whateveryouwant
mail from:<user@whateveryouwant.com>
rcpt to:<user@whereeveryouwant.com>
data
some text here formatted however you want
.

Dont forget the dot.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Icetoad, you can't script telnet, so telnet cannot be used via batch.  gbmailer can be used quite easily and effectively via batch.
0
 
BrentDevOpsCommented:
Actually you can script telnet.  It just requires a little work.. :)
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Please explain - I've NEVER seen Windows Telnet scriptable.  There is a third party app you can script, but I've NEVER seen Telnet scriptable otherwise.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
OK... the accepted answer clearly states:
"but i am afraid you cant logon to telnet with a script or batch file."

Prior to your last post I said "There is a third party app you can script" - which is referenced by name in the last comment of your quoted link:  Telnet Scripting Tool.

But the point is you can't do it without a third party app and if you're going to use a third party app, you might as well use a command line mailer such as GBMailer
0
 
flyguybobCommented:
The best application I have found for this is Postie. http://www.infradig.com/
0
 
SembeeCommented:
You need BLAT

http://www.blat.net/

Simon.
0
 
coco_parsifalAuthor Commented:
My thanks to all.  As I thought, this is simply not possible without some sort of scripting tool.
Thank you
0
 
flyguybobCommented:
Unfortunately, even with Postie, the alerts would have to somehow be scripted.  Microsoft's script center (www.microsoft.com/technet/scriptcenter) may have some VBScripts for sending SMTP mail.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now