|
-
Jun 17th, 2003, 12:51 PM
#1
Thread Starter
New Member
Winsock SMTP questions
i downloaded www.winsockvb.com sites' telnet tutorial files. this happens to be exactly what i was hoping to create with my VERY limited VB skills. I have changed the interface around but kept the coding basically in tact. I just need your expertise on how to do some of what I want to do...
I want them to automatically be connected to a server on port 25 once they open the program. If I wanted them to always log into SMTP server XYZ.com once the program started, what should i put for the code?
Secondly, I want this to be partially automatic. Ill have them use only a few commands throughout it all while connected to the server. so if i was to connect to the server and type in 'HELO weezer.com', I want them to be able to customize 'weezer.com'. I set up a textbox, and whenever they type in it and click send, i can have that sent to the server. But I want the 'Helo (then a space)' in front of their customized textbox, how should I do that? What if the 'HELO (space)' command was 'Helo (space) Helo (space)'? How would I code it so two words are inserted in front of what they typed in the textbox?
Third, It's set so they fill out 2 textboxes, then click one button to send the text to the server. I want the 'Helo textboxUserChanges1' to show, and then wait a few seconds until 'Helo Helo: textboxUserChanges2' shows and is sent. Do i just add a timer, and inbetween the commands that send the info (quesiton 2 above) stick a line in like 'timer.interval = 2000'?
I hope you understand what I am saying and I am very thankful for this site.
My final question is that lets say I finish my VB program, but want to add a new form that just has a button that has ENTER on it load before my main project. I code the ENTER button to load up the project, but how do i tell Visual Basic that I want my new form to be the form to load first in the project? I want a different form to be the default loading form for the project!
Thanks Again!
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|