Jump to content

Link to remote desktop from email


Recommended Posts

hello,

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:

#comments-start
This program send me an email at work with my home IP
#comments-end
#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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...