Zum Hauptinhalt gehen

How to add attachments in "Send Mail" Activity?

Kommentare

4 Kommentare

  • Berend Veldkamp
    First, load the file into an array of byte. Then, create the attachment using an Assign activity: attachment = New Attachment(new MemoryStream(byteArray), "image/jpeg") And finally, set the Attachment property of the SendMail activity to: New Collection(Of Attachment) From { attachment } Of course, you can combine these two statements, at the cost of some readability.

     

    You may need to load some extra libraries (on the Import tab, to the right of Variables and Arguments): Add System.Net.Mail and possibly System.IO.
    0
  • Permanently deleted user
    Hi Berend,

     

    Could you please elaborate more the attachment configuration process, or can you share you workflow.

     

    Thank you in advance,

     

    Best,

     

    ?Majdoleen
    0
  • Permanently deleted user
    Majdoleen - Did you figure this out? I am interested in doing the same thing.

     

    Thanks-Shana
    0
  • Permanently deleted user
    Sorry Shana, not yet.

     

    Best,

     

    Majdoleen
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.