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.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeSendingOrderFlowEmail)]
public class EcomOrderBeforeSendingOrderFlowEmailObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeSendingOrderFlowEmailArgs beforeSendingOrderFlowEmail)        
            return;

        // 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