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
OrderThe order.
subject
stringThe subject.
toMailAddresses
List<string>To mail addresses.
fromMailAddress
stringFrom mail address.
fromMailName
stringName of from mail.
htmlBody
stringThe 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; }