rAE_rAS
(rAE rAS)
August 5, 2022, 11:19am
1
Helllo i need help in send outlook mail message activity.
Like I have assign one variable ,
ArticleName = “F AA 22”
then I used send outlook mail activity so in body part I need to right this message,
This is automatic generated mail,
Your Article number is : [assign variable]
regards,
Your RPA Robot.
so, can you say which type I can write this mail? because in this mail 4 lines and also in the middle space and also one assigned variable. so, can you provide me with that answer?
Hey @rAE_rAS
I hope you are well.
Can you take a look at this post.
Store the template as “template.html” or whatever you want to call it. Leave namevariable and locationvariable in like you have above. Use Read Text to get the contents of the file into a string variable. Let’s say it’s called templateText. Then, in your Send Outlook Mail activity you put templateText.Replace("namevariable",namevariable).Replace("locationvariable",locationvariable). This will take the text contents of the html template and replace your placeholders with their corresponding varia…
Combined with String.Replace you can achieve what you need. Take a look at here:
Hi,
if you are a beginner in the world of automation and would like to know how you can manipulate text based on the solutions available in the VB.NET code and using REGEX (regular expressions) then you are in the right place.
In the topic below, you will learn how to easily extract data from any part of the search text using various methods.
The topic includes solution examples with descriptions and graphics to better understand the topic for functions such as:
Split
Substring
Left
Right
R…
Hopefully this helps.
Cheers
Steve
aquinn
(Aquinn)
August 5, 2022, 11:29am
3
"This is automatic generated mail,\n\nYour Article number is : " + assignvariable + “\n\nregards, \n Your RPA Robot.”
rAE_rAS
(rAE rAS)
August 5, 2022, 11:32am
4
Thank you for your replay
What Mail activity are you using?
Is your email body Using HTML?
rAE_rAS
(rAE rAS)
August 6, 2022, 10:32am
7
SEND OUTLOOK MAIL MESSAGE
Assign :
ArticleName = “F AA 22”
Assign :
Str = String.Format(“This is automatic generated mail,”+vbLf+vbLf+“Your Article number is : [{0}]”+vbLf+vbLf+“regards,”+vbLf+
“Your RPA Robot .”,ArticleName)
Then pass Str Variable to Property Body of Mail.
system
(system)
Closed
August 9, 2022, 11:43am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.