Automatic Email: Timed from Past Date

Hello everyone,
I've been thinking about trying to do something, but can use some advice and resources on how to accomplish it.
I currently have a test website that accesses a db. I use php and mySQL. I host my data online too.
Users can create accounts on the site and login to their account page from home.
From the last appointment (which is inputted into the db table called appt), I would like to have an automatic email sent to everyone every three months from the last time they had an appointment as a reminder to make another one.  The email address is stored in the members info table.  Their last appointment date is stored in the appointments table.
This is a broad question right now, I know, but I have to start somewhere.
To elaborate a bit, I would like the email to be sent a week before their recommended next appointment day so they can schedule it.
So if the last time you visited was 12/16/08, an email should be sent to you this week to remind to you make your appointment for next week.
How can I figure this out?
Thanks.

MySQL 5.1 introduces a new feature called Events that perform specific tasks at preset times or intervals. Don't ask me how to use them, because I don't have MySQL 5.1 on my server yet. I doubt if many hosting companies have either. But, if you're interested, you can find the details in the MySQL documentation for 5.1: http://dev.mysql.com/doc/refman/5.1/en/events.html.
The way I run scheduled events at the moment is by creating scripts with Command Line Interface PHP. This is simply an ordinary PHP script that begins with a command to tell the scheduler where to find PHP. It looks something like this:
#!/usr/local/bin/php
<?php
require_once('/home/mydomain/phpclasses/dosomethingspecial.class.php');
// rest of the script that I want to run on a regular basis
?>
I then schedule the jobs using Cron. If you have cPanel in your hosting setup, you should see Cron jobs, which is where you set the schedule for the script to run.
How do you find when to send the email? As part of your script, use a SQL query to find appointments that are between 83 and 90 days old.
SELECT client_id, client_name
FROM clients
WHERE appointment >= SUBDATE(NOW(), 83) AND appointment <= SUBDATE(NOW(), 90)

Similar Messages

  • Automatic Email notification of ST03N data

    Hi everyone,
    Currently, I provide <b>dialog steps data from ST03N</b> to my client on a daily basis using a spreadsheet that I send via email.  I want to somehow <u>automate the data extraction process and the email notification sent to my client</u>.  How can I do this?  What do I need to setup in the system to achieve this? 
    Below are information about the SAP system:
    Component version:    SCM 4.10
    Operating system:     SunOS
    Database system:      ORACLE
    SAP_ABA     640     SAPKA64017
    SAP_BASIS     SAPKB64017
    PI_BASIS     2005_1_640     SAPKIPYJ67
    ST-PI     2005_1_640     SAPKITLQH5
    SAP_BW     350     SAPKW35017
    EA-IPPE     300     SAPKGPIC11
    SCM     410     SAPKY41011
    SCM_BASIS     410     SAPK-41011INSCMBASIS
    BI_CONT     353     SAPKIBIFQ0
    ST-A/PI     01I_SCM410
    Any inputs will be highly appreciated.  Thank you!
    Best regards,
    Kris

    Hi,
    you can setup automated alert monitoring via CCMS, however I doubt there is automatic reporting of excel sheets.
    Please check the link below:
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/825f18c02e454dac8da51f4eb22265/frameset.htm
    Regards,
    Siddhesh

  • Trouble automatically emailing reports from BOXI

    I am running BOXI R3 on a Linux cluster.  The cluster has 8 nodes.
    I want to schedule Webi Document reports to run automatically and email them (as excel files) to certain recipients.
    I provisioned the Adaptive job servers with the email server info.  I also provisioned the Destination Job Server with the same email server info. 
    10.25.255.5 is the email server I defined in the job servers.
    I scheduled a report to run and deliver via email to two recipients.   At the option of using u201CUse the Job Server's defaultsu201D u2013 I uncheck that and manually enter the email addresses of the recipients. 
    The status showed failed and gave this info:
    *Error Message: server error. [Error initializing SMTP server. Return code: http://TCP send failed.. Reason: 10.25.155.5:25].: http://CrystalEnterprise.Smtp*
    Any thoughts you may have would be appreciated.
    Other info that was given:
    Title: SMS Delivery Success Rate
    Document Type: Microsoft Excel
    Status Failed
    External Destination: Mail the instance to: "email-address-1" and carbon copy the instance to: "email-address-2" with a subject of: "SMS Delivery Success Rate" .
    Owner: sprintuser
    Creation Time: 3/5/2010 2:41 PM
    Start Time: 3/5/2010 2:44 PM
    End Time: 3/5/2010 2:44 PM
    Server Used: qusrea12.AdaptiveJobServer
    Parent Object Path: SMS Standard Report Pack/
    Remote Instance in Federated Cluster: No
    Formats: Microsoft Excel
    Parameters: 2/1/2010;2/28/2010;
    Error Message: server error. [Error initializing SMTP server. Return code: http://TCP send failed.. Reason: 10.25.155.5:25].: http://CrystalEnterprise.Smtp
    Thanks for any help.
    Jeff

    Thanks for the input.
    i checked and can manually initiate a connection from the boxi server to the email server (10.25.155.5 port 25).
    I do have another question.  When provisioning the destinations in the Adaptive Job Server and Destination Job Server - is it mandatory to have something in the DOMAIN field?  At present I do not.  I only have something in the HOST field (the smtp server ip address).
    Thanks

  • Does Visio's Automatic Refresh Pull from the Data Source Automatically

    Hey Guys,
    So, I usually link my Visio to a Macro-Enabled Excel that pulls from my company's Database. If I select the "Automatic Refresh" Box, does it automatically run the Data Source (Alt + F8). Or do I still need to perform that function manually
    in order for the Auto Refresh to work.
    Because its macro enabled and needs to pull data from our Database, I have to Run the Excel in order for the new data to refresh into my Visio Charts.
    Thanks

    also, the guidance from the visio group is to connect directly to your data source, BUT also to have as much data manipulation and calculation done beforehand (macros/views/sprocs/etc) because while visio can do a lot of calculations, it is only meant to
    be the presentation later and isn't as efficient.
    check out chris Hopkins video here:
    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/OFC-B316#fbid=
    the section on data source best practices (as well as everything else) should be veryhelpful
    Christopher Webb | Microsoft Certified Master: SharePoint 2010 | Microsoft Certified Solutions Master: SharePoint Charter | Microsoft Certified Trainer| http://tealsk12.org Volunteer Teacher | http://christophermichaelwebb.com

  • Automatic email generation from JSP being submitted

    I am creating a JSP that when submitted I want an email to be automatically sent to someone.
    Could someone give me some advice on how to go about doing this?
    Thank you!

    use javax.mail package,that can be download from sun website separately,you can also find the package in the j2ee.

  • I want to know if you can resend receipts from past dates

    I purchased an item on July 5th from itunes. The item was a music album. My mom deleted the receipt on July 5 from the recent purchase I got from my ipod, which was the album. I want to know if you can send us that receipt again, so I can look at it. Thanks for your help.

    You are not addressing Apple/iTunes here. We are all just users like yourself. To contact iTunes:
    Apple - Support - iTunes - Contact Us
    Why do yo want the receipt? You can go to iTunes>Store>View Account. Then sign into your account and view your purchase history. It give you the date and price of purchases.

  • Automatic Email sending from SAP B1

    Hi All,
    I want to send one query result to particular email id on fix interval say daily at 10:00 AM.
    I have tried it through Alert but to my surprise it didn't send the external mail, where as the internal message works fine.
    What could be the reason of SAP B1 not sending the email ?
    TIA
    Hari Narayan

    Hi Jennifer Anderson ,
    I have configured Outlook Integration and now i am able to send the mails to any id(external or Internal) through send message window. But i want to do this through DI API. I am using message object but while I am sending the mail its asking for the USER code and Name. But the thing is that I want to send the mails to the external ids. Is it possible to send the mails to the nonuser like cutomers, vendors' ids. Is there any other way or object with the help of that I can send the external mails.

  • Automatic Email Alert from Central System

    Hello,
    Would like to ask for someone knowledgeable with setting up central auto-reaction approach on SAP System. Currently we are configuring our R3 system with this capability for us (recipients) to inform immediately if certain Critical Business Process fails. However, we have made a customized function module that determines the alert information and sends them to our central monitoring system (Solution Manager) by means of RFC (remote function call).
    Our problem now is that, when we intentionally failed one job to test the functionality of this alert and inform the recipients, we found out that no alert notification has been received by the recipients.
    Would you advice any steps or process or documents that I could use for verification on my set-up.
    Or any inputs would be highly appreciated.
    Thanks in advance.

    Hi Jaypee,
    First check if the function module u r using is calling the program to send mails through SMTP,, next check the SCOT configuration, and the authorisations for the message server.
    It would ber helpful if u could post the error number in SOST( status text)
    Also,
    if possible i would like to know what further analysis is ur CEN doin on the alerts??
    Regards,
    Kris.

  • Is there a way to create a reminder from a date that appears in an email?

    Is there a way to create a reminder from a date that appears in an email that was sent to me? I know that when a date is entered into an email I can create an event on my calendar for it, but is there a way I can have it be a reminder instead?
    Thank you

    Here is a method for extracting a still from iMovie 09.
    Are you working in iMovie and realize that certain frames in the movie would be perfect as photographs? Here is how to extract them...
    *To get a still frame from an Event*, right-click on the frame and select "Add Still Frame to Project". The still will be added to the end of the current project. Right click on the still frame in the project and select "Reveal in Finder". You will see a jpeg file that is highlighted. Drag this jpeg file in the finder to the iPhoto icon on your dock.
    *If you want a still from a project*, rather than an event, the process is similar, except you right-click on the frame and select "Add Freeze Frame", and it adds the freeze frame at the end of the clip rather than at the end of the project. Right-click/reveal in Finder, drag JPEG to iPhoto icon in dock.
    *If you are not using iPhoto*, and just want to save to your desktop, click Reveal in Finder as above, then COPY, then PASTE to desktop.
    Hint: If you do not want to clutter up your iMovie Project with stills at the end that you would have to go back and delete, then create a separate iMovie Project just for your stills, and follow the instructions for capturing stills from an Event.
    Note: If you do not have a right mouse button, then control-click will work instead of right-click.

  • Strange email problem; it started only loading unread emails, but from 3 months ago. It is now loading new emails too, but no emails in the past month, read or unread. It's gmail, set up through the phone, I've restarted restored

    Strange email problem; it started only loading unread emails, but from 3 months ago. It is now loading new emails too, but no emails in the past month, read or unread. It's gmail, set up through the phone, I've restarted restored and updated firmware, deleted the account, anything I could think of, but it's just not accurately downloading the most recent emails.

    The answer is very simple: You were not the original owner of the phone. Target sold you a phone that had been returned. You can verify the date of the original sale here: Apple - Support - Check Your Service and Support Coverage. I suspect you will find that the warranty expiration date is not one year from the date that you bought it.

  • Can't shown chinese text when copy & paste data from server to Outlook, Word & notepad, etc.( Office 2013)

    Can't shown chinese text when copy & paste data from server to Outlook, Word & notepad, etc.( Office 2013)

    Hi
    As per the information and details provided by you, when you copy & paste a data from server to Outlook, word, notepad, then you do not receive the Chinese text.
    For Outlook, please follow these steps: -
    Close and reopen Outlook in your western locale (or switch the windows system to your Western locale if you changed that),
    Manually change the message from Western to Chinese encoding, which you can do in all versions up to Outlook 2007.
    If you want to stay in your Chinese locale in Outlook 2007, then:
    After you hit reply, go to the Option tab > More Options.
    In the Encoding drop-down menu, select the Chinese encoding you are working in (Not the encoding used by the person who will receive the message)
    Note:
    To set the Chinese locale in all versions up to 2007 the controls are under.
    Tools > Options. In Outlook 2010 File tab > Options > Advanced > International options.
    Unicode (UTF-8)
    is a good setting for multilingual users.
    Check the
    Auto select 2007)/ Automatically select (2010) encoding box.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • E71 hanging Data connection after automatic email ...

    Hello all,
    My E71 seems to suffer from hanging Data Packet Connection after automatic email retreival.
    So I configured my email IMAP4 retreival and set it to automatic retreival every 15 minutes.
    Then after a few hours I check my phone and there is a data connection open and active. If I check the connections it is open for a few hours, sucking my battery.
    What should I do to make it automatically disconnect after email retreival?
    PS: I configured my packet data settings with "Data Packet connection only when needed"
    Regards,
    Menno

    I found the only solution is to set the frequency of update to more than 30 minutes. This really is a problem since the next interval is 2 hours, not 1 hour like in other nokia devices. I don't believe that my nokia N series had this problem, either.
    This is a SIGNIFICANT issue that needs to be fixed by nokia considering they want the e71 to be messaging/email device. It is very annoying to have to be prompted to close the data packet connection to do anything; i.e. make calls, use google maps, etc. Checking e-mails only once every 2 hours is obviously not a solution either.
    Get on the ball nokia!

  • Auto-email from submitted data

    I am using a fillable pdf to collect schedule changes from tutors. Some data needs to be reported to our scheduling manager, and the other data needs to be reported to the bookkeeper.
    If I create an email template, is it possible within the Adobe Acrobat array of programs to automatically generate emails based on what data was entered and "mail merge" that data so that each person only gets the information she needs?
    I am not a programmer, but I was getting pretty close to getting this issue resolved using GoogleDocs, when my boss requested that I switch to Adobe forms.
    I'd appreciate anyone's advice! And I can provide more details if the information above is vague in any way. Thanks in advance!

    Send HTML attachment by email

  • Is there any way to turn off the ical feature whereby someone emails you a meeting date/time and it automatically goes on your iCal?

    Is there any way to turn off the iCal feature whereby when someone emails you a meeting date/time and it automatically appears on your calendar?  Once there they can't even be edited or deleted.

    Greetings,
    What version of the Mac OS are you running (Apple > About this Mac)?
    You should be able to delete events in iCal as long as they are not from a "Subscription" calendar.  Subscriptions show up on the left hand side of iCal under the "Subscription" category if you have any.
    You can tell iCal to not check your mail program for invites by going and unchecking the box found in iCal > Preferences > Advanced > "Automatically retrieve..."
    Hope that helps!

  • Is there a way to automatically add text to video; the text gleaned from order data?

    is there a way to automatically add text to video; the text gleaned from order data?

    What is "order data"?

Maybe you are looking for

  • WVC54GCA: Video No Longer Displays on Windows 7

    I cannot get the video from my WVC54GCA web cam to display on my Windows 7 box; neither the Web page nor the camera utility will display the video. This began when I ran Windows Update a couple months back. Recently I rebuilt my entire system, but I'

  • Worklist Application page errors out in SOA suite 10.1.3.1

    All, I have installed SOA Suite 10.1.3.1 and going through the given BPEL samples/demos. I am trying "VacationRequest" demo. I am able to deploy the process in BPEL and initiated the process via BPEL console. After that I could not get the Worklist A

  • Strange use of Class.forName() in JDBC

    The following is the classical code to retreive data from a database via JDBC         Connection con;         Statement stmt;         String querystring;         String parametervalue = "";         try {             Class.forName("com.mysql.jdbc.Driv

  • Event for payment grouping

    Dear all, In which event in  we can able  change the value of  field 'PYGRP' payment grouping in the  table dfkkop  in invoicing process. I have worked on event 600 but it doesn't make sense  to our requirement. Susmita Edited by: susmitha harini on

  • No TR/TO created for Return PO

    Hi experts,   Now we use 161 movement for return Po reciept type. When we do this receipt, It doens't create the TR and TO.    I checked the document informaiton. in WM information, it use 601 movement an 916 stock type. but bin is 00000000. I am not