File path (string) to Office365 attachment

Hi Community,

Can anyone of you help me on conversion of file path of sting into the Office365 attachment?

Thank you in advance.
@Palaniyappan @NIVED_NAMBIAR @arivu96

1 Like

Hi,

Do you want to send email with attachments using Office365-Send Mail activity?
If so, can you try to simply set file path to Attachments property.

Regards,

@Yoichi I’m building the Office 365 Email message variable (Subject, Body and Attachments).

I have List of paths and needs to be added to the email message variable by looping the list.

Finally I need to forward this email message.

Hi,

Can you try as the following?

at = new System.Net.Mail.Attachment("c:\temp\test.txt")

Then

o365message.Attachments.Add(at)

Regards,

1 Like

Hi @Yoichi,

Thank you. Seems to be it is working. But, how can I send the email by using this Office365Message object. There is no way to pass this variable in Send Email (Office 365) activity.

Hi,

Office365 - Send Mail activity cannot handle Office365Message instance.
You want to send it using Forward Mail activity, don’t you?

Regards,

Yes, at the current scenario I want to try out using Forward Mail activity. How this can be done?

Hi,

I haven’t use Forward Mail activity with newly created MailMessage yet. As it’s designed for mail forwarding, there might be some matters.
Give it a try, then it’s great if you can share result.

Regards,

Hi @Yoichi,

I have looked into the forward email activity, but there is no way to input the Office365Message object to it. We can only input the body of the forward message.

While forwarding how to input an attachment is also under question?

Hi,

How about Message property? Does this fit for you?

Regards,

That Message property should be the email which is to be forwarded from the Inbox.

But I see the attachments section (it is missing in my case) in the above picture. Probably I need to update the package.

I don’t think so any other options are there to input the Message object as the content to the forwarded email.

Hi,

Considering the above, perhaps you should use simply Send Mail without O365Message class like my first post.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.