Class EmailService
Inheritance
System.Object
EmailService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mix.Communicator.Services
Assembly: mix.communicator.dll
Syntax
public class EmailService
Constructors
| Improve this Doc View SourceEmailService(IConfiguration)
Declaration
public EmailService(IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfiguration | configuration |
Methods
| Improve this Doc View SourceSendMail(String, String, String, String)
Declaration
public void SendMail(string subject, string message, string to, string from = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | subject | |
System.String | message | |
System.String | to | |
System.String | from |
SendMailWithEdmTemplate(String, JObject, String, String, String)
Declaration
public Task SendMailWithEdmTemplate(string template, JObject data, string subject, string to, string from = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | template | |
Newtonsoft.Json.Linq.JObject | data | |
System.String | subject | |
System.String | to | |
System.String | from |
Returns
Type | Description |
---|---|
Task |