| Methods / Send Mail | 
Sends an email through AgilePoint Server. The extended method enables you to send attachments.
| Name | Type | Description | 
|---|---|---|
| from | string | The sender of the email. | 
| to | string | Recipient of the email. | 
| cc | string | Persons copied on the email. | 
| subject | string | The subject of the email. | 
| attachments | string | File attachments included with the email. This parameter must use a file path from the file system (for example, C:\file.txt) on the machine where AgilePoint Server is installed. If there is no attachment, you can pass null or String.Empty. | 
| priority | enum | The email's priority. Values can be high, normal, or low. | 
//Sample for using Workflow.SendMailEx
IWFWorkflowService svc = GetWorkflowService();
try
	{
    string from = "john@tusca.com"; // or <Full Name>"email address"
    string to = "bill@tusca.com";
    string cc = "bob@tusca.com";
    string subject = "Mail Subject";
    string body = "Mail Body";
    string attachments = "c:\\Temp\\Tempdoc.doc";
    enum priority = "high";
 
    //Send Mail
    svc.SendMailEx(from, to, cc, subject, body, attachments);
	}
catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}