Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to send mail using independent mailserver

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!

At start-up of a pc I need to automatic send an email holding the (dynamic) IP# of that PC.
As the PC is in the middle of nowhere I am wondering if I need to setup a simple mailserver just for only mailing as described above. I can't see which other SMTP server to use (but maybe I do know to less of this stuff).

TIA
-Bart

 
You send a mail to a SMTP server anyway. And that is in the internet, not installed on the PC. So that would work the same way as after the start-up. Windows has to have internet connection at that stage already, of course. Do you really want to send a mail? You want to know the IP address somewhere, don't you?

It's much simpler without any development, use some dynamic DNS service.

Bye, Olaf.
 
Olaf,
Problem is solved by visiting a website automaticly at startup.
From that website an automaticly generated mail is sent to me holding the requested ip#. As I am not that familair with this subject I didnot realise that the solution is so easy.
-Bart
 
Well, if your application needs to know the PCs IP address, then you don't even need such a page.

For what do you need to know your own IP? Your computer knows it, your router knows it. You can do http requests, mails etc without knowing it.
If you want your PC to be available for others via some known IP even through internet, you use or other services. your PC will then be known by a name you choose, not just by it's IP address. Far simpler and stable.

Bye, Olaf.
 
Olaf,
The reason:
There is an unmanned location where I am going to install an IPcam.
I wake up the pc using a gsm.
Than the PC connects to the web using a mobile internet connection with "random" IP#.
-bart
 
OK, such IPCams should have a solution for getting at them. Also most routers have a free dyndns registration with them.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top