Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
sending automated email at specified date
I need to develop a survey. It looks pretty straightforward except for the fact that it needs to email the participant after 3 weeks of submitting the survey.
I actually need to do it in ASP but I would also like to see a PHP solutionI am on a journey to mastering Linux and I got a bloody long way to go!!!
- Join Date
- Oct 2001
- Täby, Sweden
Well, I don't know how to do it in ASP, but in PHP on a POSIX system, just make it call the following shell code (be sure to get the quoting right):
echo 'mail -s Subject email@example.com </path/to/message' | at now + 3 weeks
The PHP solution above that Dolda gave does not work. I have fiddled around a bit and tried the following:
<? `mail -s subject firstname.lastname@example.org | at now + 5` ?>
`mail -s subject email@example.com` | at now + 5
CheersI am on a journey to mastering Linux and I got a bloody long way to go!!!
I have given up on the idea. I did not think about the fact that the ATQ will be emptied at reboot and this can cause problemsI am on a journey to mastering Linux and I got a bloody long way to go!!!
- Join Date
- Jan 2003
- Cardiff, Wales
why not setup a database which stores these addresses and dates for the emails. then write a script to do the emailing. then set a cron job to run the script every nightNo trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.