HtmlForgeX

API Reference

Class

EmailLegalFooter

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements
Modifiers sealed

Email-safe legal footer with unsubscribe/preferences links and compliance text. Designed to be reusable and fully typed (no raw HTML required).

Inheritance

Constructors

Methods

public EmailLegalFooter AddCompanyAddressLine(String line) #
Returns: EmailLegalFooter

Adds a company address line.

Parameters

line System.String requiredposition: 0
AddLink 2 overloads
public override String ToString() #
Returns: String
public EmailLegalFooter WithCompany(String name) #
Returns: EmailLegalFooter

Sets company name.

Parameters

name System.String requiredposition: 0
public EmailLegalFooter WithPreferences(String href, String text = "Preferences") #
Returns: EmailLegalFooter

Convenience: sets a preferences link.

Parameters

href System.String requiredposition: 0
text System.String = "Preferences" optionalposition: 1
public EmailLegalFooter WithPrivacyPolicy(String href, String text = "Privacy policy") #
Returns: EmailLegalFooter

Convenience: sets a privacy policy link.

Parameters

href System.String requiredposition: 0
text System.String = "Privacy policy" optionalposition: 1
public EmailLegalFooter WithReason(String text) #
Returns: EmailLegalFooter

Sets reason text.

Parameters

text System.String requiredposition: 0
public EmailLegalFooter WithUnsubscribe(String href, String text = "Unsubscribe") #
Returns: EmailLegalFooter

Convenience: sets an unsubscribe link.

Parameters

href System.String requiredposition: 0
text System.String = "Unsubscribe" optionalposition: 1
public EmailLegalFooter WithViewInBrowser(String href, String text = "View in browser") #
Returns: EmailLegalFooter

Convenience: sets a view-in-browser link.

Parameters

href System.String requiredposition: 0
text System.String = "View in browser" optionalposition: 1

Properties

public String ReasonText { get; set; } #

Short reason why the recipient gets this email (optional).

public String CompanyName { get; set; } #

Company/brand name (optional).

public List<String> CompanyAddressLines { get; } #

Company address lines (optional).

public Alignment Alignment { get; set; } #

Alignment of the footer content.

public Boolean ShowDivider { get; set; } #

Whether to render a divider line above the footer.

public String DividerColor { get; set; } #

Divider color.

public String ContentPadding { get; set; } #

Vertical padding around the footer content.

public String FontSize { get; set; } #

Base font size.

public String LineHeight { get; set; } #

Line height.

public String TextColor { get; set; } #

Primary text color (theme-aware by default).

public String MutedColor { get; set; } #

Muted text color.

public String LinkColor { get; set; } #

Link color (theme-aware by default).

public String LinkSeparator { get; set; } #

Separator between footer links.