Send outlook message error found

Hi all

May i know the clear solution for this?

1 Like

@ganesh_rajan

Hope outlook application is installed in that machine and it is in online.

Update Uipath.Mail.Activities and then try once.

This is what i try to execute.I’m trying send multiple mail.input from two places(word,excel).Even i’ve attached one pdf file as well.

@ganesh_rajan

Use message box activity and try to print that mail id before send Outlook Mail message activity and check whether it is showing correct mail id or not.

yes input wise.there is no issue.i’ve printed using writeline

@ganesh_rajan,

Please try the following:-

  • keep the mail body as a text file (html format) refer that file for mail body.
  • check the (isBodyHTML) flag in the properties of the “Send Outlook mail message activity”.
  • Please explain how do you want to send the multiple files from two paths.

Thanks and Regards,
@hacky

The Email Account name of sender is not indicated under Input>Account property.

Body text has some format.so if i put into notepad.then it will gone correct

Kindly reinstall once the outlook application
—like either install it, repair it (via Add/Remove Programs) or register it (via Regsvr32.exe)
And try once
Hope that would work for sure
Cheers @ganesh_rajan

1 Like

Actually

mailbody read from word doc
To address,Subject read from excel

If i send without mailbody doc and attachment.it will work.But if i try with attachment file and mailbody then it will throw this error.

1 Like

Is the path of the word Doc is correct buddy
Kindly check that once
Cheers @ganesh_rajan

image

1 Like

No the one we mention in attach file property of send outlook mail activity
As you said it’s getting failed only when we attach a file of docx type

Kindly check that once
Cheers @ganesh_rajan

1 Like

@ganesh_rajan,

YOUR MAIN PROBLEM IN THE BODY.
Dont need to create a text file.
Please follow the below steps to achieve this:-

  • In the same excel where you read the subject and the sender, have third cell for the body.
  • In this cell, write the entire (HTML CODE) as a single one liner string and read this.
  • for reading this cell use read cell activity and then pass it as an argument to the send mail activity.

I just verified it, it is working for me,.

Thanks and Regards,
@hacky

1 Like

yeah…it’s working but i got lot of white spaces.

@ganesh_rajan,

Did you try my approach?

yes.but i got lot of white spaces between the text.

@ganesh_rajan

Please share the screenshot for reference.

image