Methods / Send Mail |
Web Services
Sends an email through AgilePoint Server. The extended method enables you to send attachments.
public virtual void SendMailEx(String From, String To, String CC, String Subject, String Body , String Attachments)
Name | Description |
---|---|
From |
|
To |
|
CC |
|
Subject |
|
Attachments |
|
None.
//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"; //Send Mail svc.SendMailEx(From, To, CC, Subject, Body, Attachments); } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }
4.6 and higher