Skip to main content

Save Attachment

AutomatR.Mail.SaveAttachment

The "Save Attachment" activity in AutomatR is designed to save attachments from a MailMessage object to a specified folder. This activity facilitates efficient attachment handling in email automation workflows, allowing users to organize and store attachments as needed.

Properties

NameDescription
Input
Mail MessageSpecifies the MailMessage object from which the attachments are to be saved. Variables of type System.Net.Mail.MailMessage containing the email message with attachments.
Save LocationSpecifies the full path of the folder where the attachments of the mail message should be saved. String variables containing the destination folder path.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Save Attachment" activity. This optional delay can help handle synchronization issues. Integer variables containing the delay duration (e.g., 5 seconds).

How to Use

  1. Drag and drop the "Save Attachment" activity onto the workflow.
  2. Configure the properties by specifying the MailMessage object containing attachments and the folder path to save attachments.
  3. Optionally, configure the display name for the activity.
  4. Execute the workflow to save attachments to the specified folder.

Example

Consider an example where the "Save Attachment" activity is used to save attachments from an email to a folder named "Attachments":

Save Attachment:
Display Name: "Save Email Attachments"
Mail Message: emailMessage
Save Location: "C:\Documents\Attachments"

In this example, the activity saves attachments from the specified email message (emailMessage) to the "C:\Documents\Attachments" folder. Adjust the input properties according to the requirements of your workflow.