Solved

batch file to send email automaticaly

Posted on 2008-06-13
6
711 Views
Last Modified: 2008-11-04
Hi,
My web hosting company server Windows base.
so i need a bath file which will sent email to a specific email adress. and i will attach this bath file to Schedule task.
In my hosting control panel, there are 2 fields

path to executable file :
Argument :

Now how i will write a bath file which will send email . and do i need to write any argument ?
0
Comment
Question by:fosiul01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Assisted Solution

by:DSEServices
DSEServices earned 200 total points
ID: 21777668
First you will have to download a dos mail sending program like postie.exe
Then create a batch file that will use postie. and last, schedule the batch file.

Postie is freeware see: http://www.infradig.com/download.shtml

0
 
LVL 29

Author Comment

by:fosiul01
ID: 21777694
Here is the problem :
I will not be able to  install any software in my web hosting companies server as i said before,
they said, You will have to write a batch file , and put that batch file in schedule task from control panel

so without installing any thirdparty software , how i will be able to send mail by batch file ??
is not there any command that i can insert in batch file for sending email ??
0
 
LVL 26

Accepted Solution

by:
farhankazi earned 250 total points
ID: 21780817
As far as I know you can not send email through plain batch file. You need to use any third party tool to achieve this or you can write VBScript for this.
0
 
LVL 18

Assisted Solution

by:BSonPosh
BSonPosh earned 50 total points
ID: 21781243
you could use telnet.

Is there a reason why the email has to be sent from the webserver? What content will it have?

I would bet you could do what ever check your doin remotely and use what ever tool you want.
0
 
LVL 29

Author Comment

by:fosiul01
ID: 21800707
Hi yah sorry i was ill from last couple of day so i was away from PC

The reason behind is, i want to check our mailserver every 30 min that its receving emails or not to do some monitoring. thats all

if you can read this question of mine, its simlier to this : http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Windows/Q_23482092.html

May be you are right, i will not be able to sent email via batch file

but can i run a php script from a batch file ??
like when batch file will fire, actually it will fire a php script ??
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’m often asked about newer and larger USB drives connected to SBS2008 and 2011 failing Windows Server Backup vs the older USB drives not failing. As disk space continues to grow and drive technology change SBS2008 and some SBS2011 end up with the f…
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question