nappyhead Posted July 6, 2006 Share Posted July 6, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/13901-user-profile-email-option/ Share on other sites More sharing options...
robos99 Posted July 6, 2006 Share Posted July 6, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/13901-user-profile-email-option/#findComment-54152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.