Class EmailService
Inheritance
System.Object
EmailService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class EmailService : Object, IEmailService
Constructors
EmailService(IApiService)
Declaration
public EmailService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService |
Methods
SendEmail(String, String, String, Int32[])
Sends an email.
Declaration
public Task SendEmail(string to, string subject, string body, int[] attachments)
Parameters
Type | Name | Description |
---|---|---|
System.String | to | The associate's email address. |
System.String | subject | Email subject line. |
System.String | body | Email content. |
System.Int32[] | attachments | File attachment DB recordnumbers. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
See the admin settings email settings page to configure who the email is from and how it is sent.