Utilization of the System.Net.Mail.MailMessage class within Aras Innovator can be utilized to create custom Emails to send to specific users by using a Server-Side method.
The method code provided in this sample is used to send an Email to a Document create containing all related files as attachments to the email. This method is then called from a Server Side action against the Document Item.
This project and the following release notes have been migrated from the old Aras Projects page.
Release | Notes |
---|---|
v1 | PDF Document for creating the method and action |
Project | Aras |
---|---|
v1 | 9.3.0 |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed
- Aras Package Import tool
- ProductLineBasedWorkflow import package
Use the following steps to create a server-side (C#) method that will be called from an Item action against the Document ItemType. Ensure that all user’s have a valid Email Address.
- Log into Aras Innovator as an Administrator.
- From the TOC select Administration > Methods and create a new Server-Side, C#
method.
- Name=Email_files_to_creator
- Copy the method code from the appendix.
- Save, Unlock and close Email_files_to_creator.
- From the TOC select Administration > ItemTypes and open Document for edit.
- Select the Actions tab and Create a new action
- Name = Email Doc to Creator
- Type = Item
- Location = Server
- Method = Email_files_to_creator
- Target = None
- Select the Actions tab and Create a new action
- Save, Unlock and Close Document.
Once the action has been created you will be able to select a single document to run the action. Execution of the action will send an HTML email to creator containing all related files as attachments.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Created by Aras Corporation Support.
Published to Github under the MIT license. See the LICENSE file for license rights and limitations.