Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [Tutorial] Get the user to send you an email, open website
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
the_short1




PostPosted: Sat Feb 14, 2004 8:33 pm   Post subject: [Tutorial] Get the user to send you an email, open website

This program asks the user: 'Send me an email' and will repeatedly ask this question until you enter 'y' or 'n'

typing 'y' will spawn a "New Email Message" window using the default mail client on the users computer, i used this in my MSN 6 Emotion Showcase program www.members.shaw.ca/rfolz/msn_emotion_showcase.exe
Try out my program to see what i mean...(my credits at end)

Very useful at the end of your program along with your credits...

You can also modify this program to ask "Visit my website"
and change mailto:uremail@mail.com to your website address
and it will open Internet explorer, on your webpage..

if user enters 'n' then the program exits loop and contines program

code:

var yn : string := ""
%start of program credits or whatever%
loop
    locate (6, 1)
    put "Send Me An Email (y/n): " ..
    get yn
    if yn = "y" then
        if not Sys.Exec ("mailto:uremailhere@mail.com") then % must have this in an if statement
            put "New Email Msg Failed To Create" ..
        end if
        exit
    else
        exit
    end if
end loop
%Rest of Program Credits or whatever%


if u have any questions or comments dont be affraid to ask

Mod Edit: doesn't seem like a tutorial to me, Moved
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: