Send Email

With the Send Email Plugin, you can send an email at a specified point within a workflow. Properties for the plug-in are described in the following table.

Download an example (.wssln file)

Property

Description

body

The body of the email message

from

Email Address of the person in which you would like to be shown in the From Field.

server

The name of the SMTP Server fetched from the Workflow configuration database that will be used to send the Email Message.

Note:

  • In the event of an error, (for example, the given SMTP Server was either blank or incorrect), the plugin will fetch the SMTP server address from the C:\inetpub\wwwroot\wss\VirtualDirectories\80\sharevis.config file, and then use this SMTP server address to send the email.
  • If the SMTP server is not present in the workflow configuration database, then the plug-in will use the SMTP server address from the SharePoint administration email settings.

subject

The Subject of the Email Message

to

Email Address(es) to which the Email Message will be sent to.

arguments

SharePoint Columns to use in the query

connectionstring

Database Connection String for getting recipients.

format

Possible values/formats are MHT and JPG

query

Query to run to get recipients.

senddelay

The number of days to wait before sending the Email Message.

includeitem

(True/False) Whether or not the form should be included as an attachment. (True=include attachment.)

formview

Which form view the recipient should receive in the email. (Only works if includeitem is set to 'true'.

includedatafile

How the recipients should receive the data file in the email: via link, attached file, or both a link and an attached file.

Adding and configuring the Copy Form Plugin

  1. Insert a Plugin Node to your workflow, and then click it to select it.

  2. In the Properties Pane, configure the Property PlugInName to Send Email

  3. To enter your arguments, in the Properties Pane, below PluginName, click the ValuePairs Property to open a new window.

  4. Click Add to add a new argument.
  5. Select the Name property and select to from the drop down.


  6. In the Value field, enter the Email Address for the recipient.


  7. Click Add to select a new argument.
  8. Under the Name property, click From.


  9. Set the Value Property to the Email Address of the sender.


  10. Click Add to select a new argument.
  11. For the Name property, select Subject.


  12. Set the Value property to the Subject of the Email Message.


  13. Click Add to add a new argument.
  14. For the Name property, select body.


  15. In the Value Property, enter the contents of the Email Message


  16. Click Add to add a New Argument
  17. For the Name property, select server.


  18. In the Value property, enter the SMTP Server information that will be used to send the Email Message.


  19. Publish the Solution to your FormEx Site.