Jump to content
Updating IPB tonight Read more... ×

Archived

This topic is now archived and is closed to further replies.

nappyhead

User Profile Email Option

Recommended Posts

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 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.