Compatible with DigiGuide 8.3 and 8.4 (and later?). Works best with Windows Vista, XP, 2000, or later. With this this Windows Script Host script, you can set up a DigiGuide alert to send an e-mail reminder. The script sends the e-mail in both HTML and text, so that if you don't have an e-mail client that can display HTML, it will display the text version instead. Requirements: 1. You must have access to an SMTP mail server, such as one from your ISP or GMail. (Yes, the script supports different ports and SSL.) (If you use Windows XP, Vista, or later, requirements #2 and #3 are almost-certainly met already.) 2. You must have Microsoft Collaboration Data Objects 2.0 installed. Frankly, I'm not sure where it comes from; I think it comes with Windows. But I do know that you need the cdosys.dll file in your Windows System32 folder (e.g., C:\Windows\System32\cdosys.dll). I think this means you have to have Windows Vista, XP, 2000, or later for this script to work. If you have Me or 9x and want to use the script, let me know and I can try to fix it up to use CDONTS (which is on Me/9x). 3. If you're not using Windows Vista or XP, you must install the Windows Script Host. Users of Windows 2000 or earlier, need to install Windows Script 5.6.
Instructions:(If you find the instructions hard to follow, please let me know so I can clarify them.) Step 1. Download the zip file, unzip the script, and save it somewhere on your computer. (I suggest your DigiGuide installation folder.) Step 2. Edit the script file in your favorite text editor, such as Notepad. You need to customize the entries in the <resource> section with your e-mail address and SMTP server information. <resource id="id_strAddressFrom">DigiGuide <MY_ADDRESS@MY_DOMAIN.COM></resource> <resource id="id_strAddressTo">FIRST_NAME LAST_NAME <MY_ADDRESS@MY_DOMAIN.COM></resource><resource id="id_strSMTPserver">MAIL.MY_DOMAIN.COM</resource> <resource id="id_strSMTPuser">MY_MAIL_LOGIN</resource> <resource id="id_strSMTPpassword">MY_MAIL_PASSWORD</resource> <resource id="id_strSMTPport">25</resource> <resource id="id_strSMTPSSL">no</resource> Step 3: Test the script. (A sample command line is provided in the instructions in the script.) wscript emailReminder.wsf /name:"Alias" /channel:"WLS" /chnum:3 /date:"6/13/06" /datelong:"Friday 13th June 2006" /start:"8:00 p" /end:"9:00 p" /duration:60 /episodename:"My Episode Name" This is the program description. (Of course, the arguments must all be on one line. They're only on multiple lines here for clarity.)Step 4. Configure a DigiGuide alert to send an e-mail by editing a marker's Alert page: Run a program: wscript Arguments: {path}\emailReminder.wsf /name:"$ProgrammeName" /chnum:$ChannelAssignment /channel:"$ChannelName" /date:$Date /datelong:"$LongDate" /start:"$StartTime" /end:"$EndTime" /duration:$Duration /episodename:"$EpisodeName" $Description (Of course, the arguments must all be on one line. They're only on multiple lines here for clarity.)For more detailed instructions and how to modify the e-mail subject and body, please see the script file itself.
20 Nov 2007: Fixed script so that if there's an e-mail error, it will correctly re-create the mail object so it can send the e-mail successfully when it retries.11 Jun 2007: If no Internet connection, it asks if you want to send the e-mail again. After a few seconds, it defaults to Yes and tries to send it again. This allows both automatic and manual operation. 24 May 2007: Added error-handling to display the program information in case it can't send the e-mail. 6 Jun 2006: Changed script to not use SMTP authentication if the SMTP user is blank. (Some SMTP servers don't require authentication.) |