954,260 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Batch file to send email!!

Does anyone know how to create a batch file that will send email through outlook express without using 3rd party programs??

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

Outlook Express doesn't open up this ability without the use of a third-party tool.

What are you trying to do and why can't you use a third-party tool to do it?

chrisbliss18
Posting Shark
917 posts since Aug 2005
Reputation Points: 38
Solved Threads: 25
 

I prefer not using third party tools, but if this can be done in VBS using CDO instead that would be better. Using that program you suggested that monitors the CPU temp i want to enable it to auto send an email when the CPU overheats & using VBS CDO would be perfect. Any solutions on how to do this would be great.

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 
tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

Thanks that works perfect on a server!! is there a way to do the same on a workstation in VBS or batch?

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

You need something to initiate a SMTP connection in order to send mail. The only versions of Windows that have this ability built-in are Professional or Server versions.

There's some good news though. There are many places to get programs that can send SMTP mail. I recommend using Blat . It's free, easy to configure, and easy to use.

chrisbliss18
Posting Shark
917 posts since Aug 2005
Reputation Points: 38
Solved Threads: 25
 
Thanks that works perfect on a server!! is there a way to do the same on a workstation in VBS or batch?


You welcome glad you got it working...at least on a server ;)

and this may help further http://www.experts-exchange.com/Programming/Q_20431995.html

-T

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

Thanks for that link but unfortunately the code doesnt work.

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

Hm are you getting error. What are they?

-T

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

the error is:-

Line: 1
Char: 17
Error: Expected '='

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 
the error is:- Line: 1 Char: 17 Error: Expected '='

Put the '=' where it syas it needs to go and see what happens.

-T

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

Did that & now says

Line: 1
Char: 21
error: expected literal constant

the script just doesnt work.

Khiladi420
Junior Poster in Training
54 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

I think you should use a command line tool to send emails via SMTP from your command line. The one from www.smtpinfo.com can even show a GUI if you like.

http://www.smtpinfo.com

What do you think?

jacobr
Newbie Poster
1 post since Dec 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You