Table of Contents

Class ProviderCapabilities

Namespace
MailForge.Models
Assembly
MailForge.dll

Describes the capabilities a provider offers.

public sealed class ProviderCapabilities
Inheritance
ProviderCapabilities
Inherited Members

Constructors

ProviderCapabilities(bool, bool, bool, bool, bool)

Creates a capabilities descriptor.

public ProviderCapabilities(bool supportsAttachments = true, bool supportsInlineImages = true, bool supportsHeaders = true, bool supportsTags = true, bool requiresBothBodies = false)

Parameters

supportsAttachments bool
supportsInlineImages bool
supportsHeaders bool
supportsTags bool
requiresBothBodies bool

Properties

All

A capabilities descriptor representing every option.

public static ProviderCapabilities All { get; }

Property Value

ProviderCapabilities

BodyOnly

A capabilities descriptor representing a provider that only sends text/HTML bodies.

public static ProviderCapabilities BodyOnly { get; }

Property Value

ProviderCapabilities

RequiresBothBodies

True when the provider is limited to HTML-only or text-only messages.

public bool RequiresBothBodies { get; }

Property Value

bool

SupportsAttachments

True when the provider supports sending attachments.

public bool SupportsAttachments { get; }

Property Value

bool

SupportsHeaders

True when the provider supports custom headers.

public bool SupportsHeaders { get; }

Property Value

bool

SupportsInlineImages

True when the provider supports inline images (cid: references).

public bool SupportsInlineImages { get; }

Property Value

bool

SupportsTags

True when the provider supports arbitrary tags for analytics.

public bool SupportsTags { get; }

Property Value

bool