Click or drag to resize

EcommerceOrderBeforeSendingOrderFlowEmailArgs Class

Provides information about order before sending an order flow email.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderBeforeSendingOrderFlowEmailArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class BeforeSendingOrderFlowEmailArgs : NotificationArgs

The EcommerceOrderBeforeSendingOrderFlowEmailArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderBeforeSendingOrderFlowEmailArgs
Initializes a new instance of the EcommerceOrderBeforeSendingOrderFlowEmailArgs class.
Top
Properties
  NameDescription
Public propertyFromMailAddress
Gets the sender email address.
Public propertyFromMailName
Gets the sender email name.
Public propertyHtmlBody
Gets the html body of email.
Public propertyOrder
Gets the order.
Public propertySubject
Gets the subject.
Public propertyToMailAddresses
Gets the recipients email addresses.
Top
Remarks
The passed NotificationArgs is EcommerceOrderBeforeSendingOrderFlowEmailArgs
Examples
C#
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
        }
    }
}
See Also