Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2000
    Posts
    2,002

    Thumbs up Screen: Email Registration

    Screen: Email Registration
    Last Revision: October 8, 2004

    Overview
    This screen allows you to have your users submit registration information to you during the installation process. The information will be submitted to a PHP script (provided below) which will in turn email the information to you. This screen can easily be modified to include more information, perform data validation, etc. The PHP script can also be easily modified to store the informaiton in a database, etc. As well as being useful in your projects, this screen will also teach you how to:
    • Use the HTTP.Submit action
    • Use the Edit Fields screen
    • Work with strings

    Author Information
    This screen was created for use by registered owners of Setup Factory 7.0 by Brett Kapilik. Indigo Rose Corporation does not provide support for any 3rd party screens or addons.

    Installation Instructions
    To make this screen available to your Setup Factory 7.0 projects, follow the steps below:
    1. Close Setup Factory 7.0, if it is running.
    2. Browse to the folder where Setup Factory 7.0 is installed on your system. By default it is C:\Program Files\Setup Factory 7.0.
    3. Locate the "Screens" folder.
    4. Unzip the contents of Email_Registration.zip (see bottom of article) into the Setup Factory 7.0 Screens folder, making sure you preserve the folder structure.
    5. Restart Setup Factory 7.0.
    6. Unzip the file suf7_reg.php from suf7_reg.zip and upload to your Web site.
    7. To use this new screen in your project, select Project > Screens from the main menu and click the Before Installing or After Installing tab. Click the Add button and select "Email Registration" from the screen gallery.
    8. After you have added the screen to your project, edit the On Next event and fill in the appropriate variables.

    You should now be able to build and test the screen.

    Screen Name: Email Registration
    Type: Setup Factory 7.0 Screen
    Created By: Brett Kapilik

    Comments? Please post them here.
    Attached Images
    Attached Files

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    If anyone is familiar with ASP, please feel free to post an equivalent ASP script here.

  3. #3
    Join Date
    Apr 2005
    Posts
    3
    just a quick question, how do i make it so some fields are required before they can continue ???

  4. #4
    Join Date
    Feb 2005
    Location
    Birmingham, Alabama
    Posts
    175
    Yes, PLEASE post an autoplay script here! I have setup factory 6.0, could I use this with the earlier version?

    thanks,
    Mike

  5. #5
    Join Date
    Oct 2003
    Posts
    45
    Quote Originally Posted by cyberops
    just a quick question, how do i make it so some fields are required before they can continue ???

    Yep that would be exactly what I am looking for too.

    I need the Hard Drive Serial number emailed to me, so that I may check hosw many machines the application is installed on.

  6. #6
    Join Date
    Oct 2003
    Posts
    45
    Further Information on my last post

    I can work out how to get the serial number of the hard drive, and indeed all the Hard drive information, I'm having a problem getting that into a means to display it to the person installing, and stating that this information will be sent to us. I need to get the info into a %variable%?

    Any help appreciated.

  7. #7
    Join Date
    Jul 2005
    Posts
    2

    PHP file to the website?

    In the setup it talks about putting the one PHP file on my website......my website is hosted by an external are there any necessary things that I need to know from them or have to tell them or can I just dump it anywhere onto an HTML based website built by frontpage 2003?

  8. #8
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. If the server supports PHP you can just name any file with a .php extension, upload it, and the server will parse it as PHP. If you aren't sure whether or not your server supports PHP try this test script. Simply paste the following code into a text editor and save it as "test.php", then upload it and surf to the uploaded URL through your browser, if you have PHP you will see "Hello World!" and if not you will see all the pasted code "as is".

    Code:
    <?php
    echo "Hello World!";
    ?>

  9. #9
    Join Date
    Oct 2003
    Posts
    45
    Quote Originally Posted by MSokolosky
    In the setup it talks about putting the one PHP file on my website......my website is hosted by an external are there any necessary things that I need to know from them or have to tell them or can I just dump it anywhere onto an HTML based website built by frontpage 2003?
    If it's a php file, you need to have it in at least the root directory, but probably better in it's own folder,

    so you would access it via http://www.yourdomainname.com/foldername/php.file

    Root directory is commonly called "public_html" but some servers have other names for it you would need to check with your provider.

    To make it work, so long as it's in the same directory as you upload your html files to, it should work.

    Remember to configure the php file before you upload it, and i recommentd you do not do this in Microsoft Frontpage but in Notepad. Configure the variables then upload.

    Hope that helps

  10. #10
    Join Date
    Sep 2005
    Posts
    6
    I can show you this is my edit version of email screen.

    -- Setup some variables.
    -- Modify these to fit your situation:
    strProductName = SessionVar.Expand("%ProductName%");
    strProductVersion = SessionVar.Expand("%ProductVer%");
    -- This is the email address that the registrations should be sent to:
    strEmailTo = "your_email@domain.net";
    -- This is the location of the suf7_reg.php file on your server:
    strURL = "http://www.your_domain.net/ur_reg.php";

    -- Assemble details into an email message
    local strMessage = "";
    strMessage = strMessage.."Product: "..strProductName.."\r\n";
    strMessage = strMessage.."Product Version: "..strProductVersion.."\r\n";
    strMessage = strMessage.."Full Name: "..SessionVar.Expand("%FULL_NAME%").."\r\n";
    strMessage = strMessage.."Nick Name: "..SessionVar.Expand("%NICK_NAME%").."\r\n";
    strMessage = strMessage.."Country: "..SessionVar.Expand("%COUNTTY%").."\r\n";
    strMessage = strMessage.."Email: "..SessionVar.Expand("%EMAIL%").."\r\n";
    --We start to add checking fields here
    if (SessionVar.Expand("%FULL_NAME%") == "") then
    Dialog.Message("Notice", "The Full Name edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Screen.SetFocus(CTRL_EDIT_02);
    elseif (SessionVar.Expand("%NICK_NAME%") == "") then
    Dialog.Message("Notice", "The Nick Name edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Screen.SetFocus(CTRL_EDIT_03);
    elseif (SessionVar.Expand("%COUNTTY%") == "") then
    Dialog.Message("Notice", "The Country edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Screen.SetFocus(CTRL_EDIT_04);
    elseif (SessionVar.Expand("%EMAIL%") == "") then
    Dialog.Message("Notice", "The E-Mail edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Screen.SetFocus(CTRL_EDIT_05);
    else --End of checking fields
    local strSubject = "Registration for "..strProductName;
    local strFrom = SessionVar.Expand("%EMAIL%");
    local strTo = strEmailTo;

    -- Create the table of data to be passed to the PHP script:
    local tblValues = {MailTo=strTo,MailFrom=strFrom,MailSubject=strSubj ect,MailMessage=strMessage};

    local strResult = HTTP.Submit(strURL,tblValues,SUBMITWEB_POST);
    local nLastError = Application.GetLastError();

    if((strResult == "OK") and (nLastError == 0))then
    Dialog.Message("Status","Registration successful. Thank you.");
    -- advance to the next screen
    Screen.Next();
    else
    local nResult = Dialog.Message("Status","Registration failed (#"..nLastError.."). Would you like to try again?",MB_YESNO,MB_ICONQUESTION);
    if(nResult == IDNO)then
    -- advance to the next screen
    Screen.Next();
    end
    end
    end -- we add a end here for the checking fields

    I hope that is what you was looking for

    Quote Originally Posted by cyberops
    just a quick question, how do i make it so some fields are required before they can continue ???
    Last edited by cs200x; 09-19-2005 at 12:15 PM.

  11. #11
    Join Date
    May 2007
    Posts
    1

    Thumbs up I can't create Email Registration

    After i upload the suf7_reg on my host, i open by IE it show me:
    Warning: mail() [function.mail]: SMTP server response: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it in C:\Inetpub\vhosts\ytuongnew.com\subdomains\demo\ht tpdocs\suf7_reg.php on line 12
    OK

    please show me how to fix it.

Similar Threads

  1. Screen: Download File Progress
    By Brett in forum Setup Factory 8.0 Examples
    Replies: 13
    Last Post: 01-13-2007, 09:24 PM
  2. Sending Email with Subject, Body and Attachment Filled In
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-24-2003, 01:30 PM
  3. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  4. HOWTO: Install a Screen Saver
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-27-2002, 01:35 PM
  5. Progress Screen
    By csd214 in forum Setup Factory 6.0
    Replies: 4
    Last Post: 02-13-2002, 02:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts