Jump to content


Photo

User Profile Email Option


  • Please log in to reply
1 reply to this topic

#1 nappyhead

nappyhead
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 06 July 2006 - 10:03 PM

I'm not sure if this has been discussed, and I'd like to know if this is going to require some complex coding to accomplish.

My goal is to allow my users to enter a particular date (m/d/y) into their profile, which would send out an email - related to the site - to that user on the date that they submitted.

I'm assuming you simply have to apply an if statement when the date is submitted in their profile. 

if (today's date == to the date you submitted) {
    send out the designated email to the user
}

I'd appreciate any tips to help me accomplish this.

TB 

#2 robos99

robos99
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 06 July 2006 - 10:25 PM

Using UNIX timestamps....

if(time() > $userdate){
  //email user
}

You'll just need to convert the date they enter in their profile into a UNIX timestamp, which you can do with strtotime




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users