I know its syntax but I cant figure out what it should be. see code below.
Code: Select all
// get user input
ControlGetText, UserInput, edit1 ;this will get the proj code in the textbox
//set variable name userInput = ASIA20 New House
new_proj = %userInput%
;;;;;;;;;;;;;;;;;;;;;;;MAKE EMAIL
msgbox, 4, , Send Email?`n`n`n`n
IfMsgBox Yes
{
Email_list := "[email protected];[email protected];[email protected]"
m := ComObjCreate("Outlook.Application").CreateItem(0)
m.To := Email_list
m.cc := "[email protected]"
m.Subject := new_proj " is created! Click the link below"
m.Body := "<a href = ""\\Features3.xxxxx.local\Features3\7Ci\%new_proj%""></a>"
m.Display
}
else IfMsgBox No
{
return
}
;;;;;;;;;;;;;;;;;;;;;;;;END MAKE EMAIL
//text returned in email
<a href = "\\Features1.xxxxx.local\Features1\ATP\%new_proj%"></a>
//should be
<a href = "\\Features1.xxxxx.local\Features1\ATP\Asia20 New House"></a>