How to email an external IP from a command line in Windows
Do you do remote support for customers, family and friends, that for some reason won't or can't get a dynamic DNS (available from dyndns.org) for their dynamic IP? Here is a "simple" solution, using all free software. Once this is setup it will email you their IP every day, or whenever you tell them to click that shortcut I made for you.
Create a folder on their C:\ called GetIP
Extract all files from GetIP.zip (http://www.angells.com/files/GetIP.zip) to the GetIP folder, you should have the following structure:
Install HFFRTAKSetup.exe, you should use all default options except you won't need the desktop or Quick Launch icons.
Edit GetIP.bat, change the SET commands to match you, the other person and your ISP.
Host = SMTP server of your ISP
Sender = Sender's full email address
Receiver = Recipient's full email address
User = User name for the SMTP account
Pw = Password for the SMTP account
Port = Outgoing mail port
Name = Friendly name of the person or company this is for
That is it for the setup. Since you are the person that does support, I won't insult your intelligence with detailed instructions for creating the scheduled task or setting up a desktop shortcut.
The major downside to this routine is that you have to place SMTP login information in the batch file in plain text.
The portion of this routine that gets the IP is based on the work done by basepart on Aug. 26, 2004 (http://www.governmentsecurity.org/forum/index.php?showtopic=7686).