JJ_kobalt
(Joris Jansen)
December 30, 2019, 10:45am
1
Hi All,
I was wondering if it is possible to add a response button to an email message. So I am looking to create a way wereby I get responses on my messages via a push button. This can be a simple Yes or No button, via this way I am able to check if my messages are legit.
Kind regards,
JJ
Hello @JJ_kobalt ,
You can try this- Hope this helps.
Set objOutlook = CreateObject(âOutlook.Applicationâ)
Set objMail = objOutlook.CreateItem(0)
objMail.Display 'To display message
objMail.To = âSender email addressâ
objMail.Subject = âTest Mail Subjectâ
objMail.Body = âThis is Email Bodyâ
objMail.VotingOptions=âYes;Noâ
objMail.Send
objOutlook.Quit
Set objMail = Nothing
Set objOutlook = Nothing
Copy the above code in notepad and save as .vbs for running. This will create voting buttons for you.
You can refer the below link for the same-
Add voting options to a mail item | Microsoft Learn
Or You can also try invoke code activity-
You may get error using Interop.Outlook namespace ; to resolve you have to follow the steps-
mantioned inthe link-HOWTO: Use MS Office COM interop with UiPath
3 Likes
rkelchuri
(ER.Krishna)
December 31, 2019, 10:34am
3
@JJ_kobalt , as Lipika said⌠after creating the vbs file⌠just call it by using open application activity from UiPath. It will work .
JJ_kobalt
(Joris Jansen)
December 31, 2019, 1:47pm
5
@Lipika_Porey Thanks, after some struggles it almost worked, but the votingOptions is not recognized. Do you know how this can happen?
In addition, is it possible to include the votingbuttons as a easy to recognise button within the body text?
Like this:
I want it as easy accessible as possible.
Hello,
To create this button on an email body you need to use Send Outlook email activity and check the âIs body Htmlâ option.
And In the body of the email you can try this-
2 Likes
JJ_kobalt
(Joris Jansen)
January 2, 2020, 8:16am
7
Thanks, is there an option to send the email direct automatically? It now opens the microsoft mail application, opening the outlook application would also be more favorable.
system
(system)
Closed
January 5, 2020, 8:16am
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.