+ Reply to Thread
Results 1 to 3 of 3

Thread: Automatically Send Email

  1. #1
    lelandstrott is offline x10Hosting Member lelandstrott is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    1

    Automatically Send Email

    Hello to all,

    Is it possible in php to automatically send an email out on someone's birthday?

    I mean to say without anyone clicking a button to do so? If so, please let me know.

    Your help much appreciated .

    Thanks

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Automatically Send Email

    You'd have to have all the user's birthdays in a database. Then make a script that checks for all birthdays that are on todays date (using the date function). It would then send said users an email for their birthday.

    You could run a cron job everyday to check the database (basically run the script).
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    ejweb is offline x10Hosting Member ejweb is an unknown quantity at this point
    Join Date
    Dec 2008
    Location
    Washington State
    Posts
    64

    Re: Automatically Send Email

    I think one of the big issues including running a "script" is what process is going to run or execute that "script" or a ".php" web page. For example; I wanted to send an email out to all focals who have outstanding requests that are over five days old. If the website is heavily used, I could create a .php or .asp scripting page to check the date difference because I'll know someone will go to that page. But as you pointed out; you don't want to do this as do I. So, since I was dealing with Database Admins on a SQL server, I had to create what is called a "DTS" (Data Transformation Service) package to run that web page or "script" and have the DBA Admin "schedule" the time (ie; every day at midnight) when to run that "package" so the script will executed to do the outstanding date comparison - similar to what you may want to do. You may need to ask for assistance from a "DBA" or some kind of Web/DB administrator...
    Last edited by ejweb; 04-10-2009 at 07:52 PM.

+ Reply to Thread

Similar Threads

  1. please send me a confirmation email
    By anhminh in forum Free Hosting
    Replies: 8
    Last Post: 03-01-2009, 03:23 AM
  2. i can't send or recive email on my account
    By vstafford in forum Free Hosting
    Replies: 3
    Last Post: 04-18-2008, 08:39 PM
  3. Replies: 36
    Last Post: 03-28-2008, 05:10 PM
  4. imap issues on windows mail... cannot send email
    By enever in forum Free Hosting
    Replies: 6
    Last Post: 03-04-2008, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers