views:

23

answers:

4

I need to send myself an automated email once a day from my windows XP dev. machine. I've got Apache, PHP, and MySQL running here. I don't mind which email address the email gets sent from since i can add it to my address bar. I'm wondering though, what do i need to enable/install to be able to send emails?

A: 

You'll need some sort of mail transport agent - like sendmail. You could theoretically use a PHP library for sending email and have it relay to an SMTP server hosted somewhere else.

infamouse
+1  A: 

you can look into scheduled tasks that and commandline php. Commandline php lets you execute php files from the cmd for example php emailsend.php where you can use the mail() function. :)

Android Noob
Still need an MTA, and a normal LAMP stack on XP won't find a mail server.
infamouse
ah didnt see he hadnt sendmail on it, can be downloaded and configured easily from apachefriends.org
Android Noob
A: 

You can try using the swift mailer library

http://swiftmailer.org/

Zak
A: 

Check out BLAT:

You can set it up to run in a batch file and then use the Windows Task scheduler to execute the batch file at the specified time each day.

Rich