Show / Hide Table of Contents

Class NullEmailMessageBuilder

A null email message builder.

Inheritance
System.Object
NullEmailMessageBuilder
Implements
IEmailMessageBuilder
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: Kephas.Mail.Services
Assembly: Kephas.Mail.dll
Syntax
public class NullEmailMessageBuilder : IEmailMessageBuilder

Properties

| Improve this Doc View Source

EmailMessage

Gets a message describing the email.

Declaration
public IEmailMessage EmailMessage { get; }
Property Value
Type Description
IEmailMessage

A message describing the email.

Methods

| Improve this Doc View Source

AddAttachment(Stream, String)

Adds an attachment to the message.

Declaration
public IEmailMessageBuilder AddAttachment(Stream content, string name)
Parameters
Type Name Description
System.IO.Stream content

The attachment content.

System.String name

The file name.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

Bcc(String, String)

Sets the blind carbon copy recipient address.

Declaration
public IEmailMessageBuilder Bcc(string address, string displayName = null)
Parameters
Type Name Description
System.String address

The address.

System.String displayName

Name to display.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

BodyHtml(String)

Sets the HTML body.

Declaration
public IEmailMessageBuilder BodyHtml(string body)
Parameters
Type Name Description
System.String body

The HTML body.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

BodyText(String)

Sets the HTML body.

Declaration
public IEmailMessageBuilder BodyText(string body)
Parameters
Type Name Description
System.String body

The HTML body.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

Cc(String, String)

Sets the carbon copy recipient address.

Declaration
public IEmailMessageBuilder Cc(string address, string displayName = null)
Parameters
Type Name Description
System.String address

The address.

System.String displayName

Name to display.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

From(String, String)

Sets the address from which the mail is sent.

Declaration
public IEmailMessageBuilder From(string address, string displayName = null)
Parameters
Type Name Description
System.String address

The address.

System.String displayName

Name to display.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

Sender(String, String)

Sets the sender address.

Declaration
public IEmailMessageBuilder Sender(string address, string displayName = null)
Parameters
Type Name Description
System.String address

The address.

System.String displayName

Name to display.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

Subject(String)

Sets the subject.

Declaration
public IEmailMessageBuilder Subject(string subject)
Parameters
Type Name Description
System.String subject

The subject.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

| Improve this Doc View Source

To(String, String)

Sets the recipient address.

Declaration
public IEmailMessageBuilder To(string address, string displayName = null)
Parameters
Type Name Description
System.String address

The address.

System.String displayName

Name to display.

Returns
Type Description
IEmailMessageBuilder

This IEmailMessageBuilder.

Implements

IEmailMessageBuilder

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EmailMessageBuilderExtensions.To(IEmailMessageBuilder, IEnumerable<String>)
EmailMessageBuilderExtensions.Cc(IEmailMessageBuilder, IEnumerable<String>)
EmailMessageBuilderExtensions.Bcc(IEmailMessageBuilder, IEnumerable<String>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX