How to send an automated email from Win XP Apache
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 addr开发者_开发问答ess 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?
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. :)
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.
You can try using the swift mailer library
http://swiftmailer.org/
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.
精彩评论