/// <summary> /// Appends a Stop action. /// <para />This action stops the evaluation of the subsequent Routes. Otherwise, all lower priority Routes will also be evaluated. /// </summary> /// <returns>Collection of actions</returns> public ActionCollection AddStop() { Items.Add(RouteActions.Stop()); return(this); }
/// <summary> /// Appends a Forward action with the specified destination. /// <para />This action forwards the message to a specified destination, which can be another email address or a URL. /// </summary> /// <param name="destination">Destination URL or email address.</param> /// <returns>Collection of actions</returns> public ActionCollection AddForward(string destination) { Items.Add(RouteActions.Forward(destination)); return(this); }
/// <summary> /// Appends a Store action with the optional endpoint for notification. /// <para />This action stores the message temporarily (for up to 3 days) on Mailgun’s servers so that you can retrieve them later. /// </summary> /// <param name="callback">URL for receiving notification when the email arrives (optional).</param> /// <returns>Collection of actions</returns> public ActionCollection AddStore(string callback = null) { Items.Add(RouteActions.Store(callback)); return(this); }