Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Thanked 0 Times in 0 Posts

    schedule email via cron and PHP?

    Hi All,
    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 listname-list@domain.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

    Tony D.

  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 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.

    PHP Code:
    "From: [email]you@yourdomain.com[/email]\n";
    $headers .= "Reply-To: [email]you@yourdomain.com[/email]\n";

    'check what you need if anything as the subject line',
    'or indeed in the body',
    resistance is...

    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)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts