Class SendMailHelper
Places outgoing mail into the Outbox, where ejCron will pick it up and send it out within a few minutes.
Inherited Members
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public class SendMailHelper
Constructors
SendMailHelper()
Places outgoing mail into the Outbox, where ejCron will pick it up and send it out within a few minutes.
Declaration
public SendMailHelper()
Methods
GenerateRfc822(string, string, string, string, string, string)
Generates mail headers and MIME wrappers for successful mailing
Declaration
public static string GenerateRfc822(string fromAddress, string toAddress, string subject, string plainBody, string htmlBody, string tag)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fromAddress | Sender E-mail address |
| string | toAddress | Recipient E-mail address |
| string | subject | plain text string |
| string | plainBody | Plain text body (optional) |
| string | htmlBody | HTML body (optional) |
| string | tag | Category tag for classifying outgoing mail |
Returns
| Type | Description |
|---|---|
| string | RFC822 content |
PlaceInOutboxAsync(string, string, string, string, string, string, CancellationToken)
Creates an outbox row representing a simple e-mail with one recipient
Declaration
public static Task<string> PlaceInOutboxAsync(string fromAddress, string toAddress, string subject, string plainBody, string htmlBody, string tag, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fromAddress | Sender E-mail address |
| string | toAddress | Recipient E-mail address |
| string | subject | plain text string |
| string | plainBody | Plain text body (optional) |
| string | htmlBody | HTML body (optional) |
| string | tag | Category tag for classifying outgoing mail |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<string> | RFC822 content |