Show / Hide Table of Contents

Class SendMailHelper

Places outgoing mail into the Outbox, where ejCron will pick it up and send it out within a few minutes.

Inheritance
Object
SendMailHelper
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public class SendMailHelper : Object

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

PlaceInOutbox(String, String, String, String, String, String)

Creates an outbox row representing a simple e-mail with one recipient

Declaration
public static string PlaceInOutbox(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

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top