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.
- See Also
Properties
FromMailAddress
Gets the sender email address.
public string FromMailAddress { get; }
Property Value
- string
- From mail address.
- See Also
FromMailName
Gets the sender email name.
public string FromMailName { get; }
Property Value
- string
- The name of from mail.
- See Also
HtmlBody
Gets the html body of email.
public string HtmlBody { get; }
Property Value
- string
- The HTML body.
- See Also
Order
Gets the order.
public Order Order { get; }
Property Value
- Order
- The order.
- See Also
Subject
Gets the subject.
public string Subject { get; }
Property Value
- string
- The subject.
- See Also
ToMailAddresses
Gets the recipients email addresses.
public List<string> ToMailAddresses { get; }
Property Value
- See Also