Jump to content

Link to remote desktop from email

Recommended Posts



I have a script that send me an email with my external IP at home.  In this email, I have a HTTP link to access my router.  I would like to have also a link that when I click on it, it open automatically RDP with the external ip on it.


Here is my code:

This program send me an email at work with my home IP
#include <Inet.au3>
#include <MsgBoxConstants.au3>

Local $sPublicIP = _GetIP()
Local $s_SmtpServer = "SMTPServerName"
Local $s_FromName = "Home_to_Job"
Local $s_FromAddress = "MyHomeEmail"
Local $s_ToAddress = "MyWorkEmail"
Local $s_Subject = "My Home IP"
Local $as_Body[6]

$as_Body[0] = "My home IP is: " & $sPublicIP
$as_Body[1] = ""
$as_Body[2] = ""
$as_Body[3] = "Link to my router DLINK = http://" & $sPublicIP & ":8081"
$as_Body[4] = ""
$as_Body[5] = ""

Local $Response = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body)


Thanks for any help



Edited by JLogan3o13

Share this post

Link to post
Share on other sites

Moved to the appropriate forum and added code tags.

√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.