Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: schedule email via cron and PHP?
01-17-2004, 03:29 AM #1
- Join Date
- Jan 2004
- Thanked 0 Times in 0 Posts
schedule email via cron and PHP?
I've been trying to complete a task that in theory seen simple, but havent been able to make anything work. Here is what i'm trying to do;
I host a few mailing lists for a government office in the town i live, and would like to backup the subscriber lists once or twice a week via email command to my mailing list manager which is EZMLM that is built into the H-Sphere control panel that i use. The command to retrieve the list is email@example.com . Once submitted, the list of subscribers is sent to my email box. What i want to accomplish is creating a php script/file that can be scheduled via cron to send an email to the list address above and appear that its coming from my personal address to the response is sent only to me. Does anyone have any suggestions on how to accomplish this? I tried the mail() function but was unsuccessfully. Any help will be greatly appreciated
01-18-2004, 04:45 AM #2
- Join Date
- May 2002
- Perth Australia
- Thanked 92 Times in 90 Posts
did you set any headers when sending the mail ? , if not its worth a try else the list server may not know who to reply to.
$headers = "From: [email]firstname.lastname@example.org[/email]\n";
$headers .= "Reply-To: [email]email@example.com[/email]\n";
'check what you need if anything as the subject line',
'or indeed in the body',
MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)