Table of Contents

Class Ecommerce.Order.BeforeSendingOrderFlowEmailArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about order before sending an order flow email.

public class Ecommerce.Order.BeforeSendingOrderFlowEmailArgs : NotificationArgs
Inheritance
Ecommerce.Order.BeforeSendingOrderFlowEmailArgs
Inherited Members

Examples

using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSendingOrderFlowEmail)]
    public class EcomOrderBeforeSendingOrderFlowEmailObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSendingOrderFlowEmailArgs beforeSendingOrderFlowEmail = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeSendingOrderFlowEmailArgs;

            //Add code here
        }
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Order.BeforeSendingOrderFlowEmailArgs

Constructors

BeforeSendingOrderFlowEmailArgs(Order, string, List<string>, string, string, string)

Initializes a new instance of the Ecommerce.Order.BeforeSendingOrderFlowEmailArgs class.

public BeforeSendingOrderFlowEmailArgs(Order order, string subject, List<string> toMailAddresses, string fromMailAddress, string fromMailName, string htmlBody)

Parameters

order Order

The order.

subject string

The subject.

toMailAddresses List<string>

To mail addresses.

fromMailAddress string

From mail address.

fromMailName string

Name of from mail.

htmlBody string

The HTML body.

Properties

FromMailAddress

Gets the sender email address.

public string FromMailAddress { get; }

Property Value

string

From mail address.

FromMailName

Gets the sender email name.

public string FromMailName { get; }

Property Value

string

The name of from mail.

HtmlBody

Gets the html body of email.

public string HtmlBody { get; }

Property Value

string

The HTML body.

Order

Gets the order.

public Order Order { get; }

Property Value

Order

The order.

Subject

Gets the subject.

public string Subject { get; }

Property Value

string

The subject.

ToMailAddresses

Gets the recipients email addresses.

public List<string> ToMailAddresses { get; }

Property Value

List<string>

To mail addresses.

See Also

To top