Question #697175 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/697175
Status: Open => Answered Manfred Hampl proposed the following answer: What you need has nothing to do with Sikulix, but is plain Python syntax. You need string concatenation to construct the value for "mail_sending". Something like this: def start_user(): print('sending mail to user') mail_sending = 'powershell \n' mail_sending = mail_sending + '$EmailFrom = "' + MyMail + '\n' mail_sending = mail_sending + '$EmailTo = "' + email + '\n' etc. Another possibility is substitution with %s see e.g. https://www.pythonforbeginners.com/concatenation/string- concatenation-and-formatting-in-python -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp