|
-
Mar 20th, 2000, 02:01 AM
#1
Thread Starter
Junior Member
I am looking for a way to send the ip of the computer the program is run on through email, or if possible aim (or aol buddy list) or icq. How can read a computers ip through vb?
-
Mar 20th, 2000, 03:28 AM
#2
Addicted Member
Getting the computers IP is realy easy.
Just add a winsock controll to your project and a text box
and put the following code in a button or in the Form_Load event.
Code:
text1.text = Winsock1.LocalIp
-Lumin
-
Mar 20th, 2000, 09:36 AM
#3
Addicted Member
Hi
Its me again
I have posted a project at planet-source-code that might help you a little
http://216.5.163.42/vb/scripts/ShowC...txtCodeId=6717
-Lumin
-
Mar 20th, 2000, 11:32 PM
#4
Thread Starter
Junior Member
thanks!
Thanks man! That cleared things up a bit, but i still have some questions. Can i put ANY smtp server? Does it have to be a specific type? I would like to make the sendings happen automatically every 3 mnutes (use a timer right?)
-
Mar 21st, 2000, 06:09 AM
#5
Addicted Member
My only advice about the smtp server is just to test.
you can sue online.no if you want to (thats my internet provider) just write your eMail in the reciver and then try diferent smtp servers like aol.com, hotmail.com and so on.
you will get the eMail if evrything works out. you might also try to put mail.smtpserver.com because some providers uses 'mail.' infront of their samtp servers.
yes using a timer should do the thing.
just put the event in the Form_Load and then make the time push the send button evry 3 min. but if you expect the IP to change you might want to refresh the IP textbox evry 2:59 minute so if it changes it will be updated before the program sends the IP.
got it? 
-Lumin
-
Mar 21st, 2000, 01:39 PM
#6
Conquistador
Attachments?
how do I send attachments, with these emails lumin??
do you know?
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
|