https://autohotkey.com/board/topic/9582 ... -mailsend/
Fortunately it is not a sensitive email account (only used for sending these notifications) and if compromised it is not going to do any damage and all anyone would get is a list of filenames and access to an email account that sends me data.
But I was thinking about how to secure this a little better than having the account and password in plain text in the code so I can use it for other purposes as well.
Using an input box that runs when the program is first started, asking for an a email address and password, and placing the user input to variables, the variables can be used when using the function.
My question is: Can the contents of this variable be accessed once the script is already running?
so something like this:
Code: Select all
start program
input box - email account
input box - email password
idledelay := 3000000
SetTimer, CheckTime, 600000 ;check time every 10 minutes
Return
CheckTime:
if (A_WDay > 1) && (A_WDay < 7) && (A_Hour > 06) && (A_Hour < 19) && (A_TimeIdle > idledelay)
{
does stuff
email account variable is sent to the function
email password variable is sent to the function
does more stuff
return
}