C# Class PerplexMail.EmailTag

This class is used as a model class to specify which tag (in the email) should be replaced with which value
Mostra file Open project: PerplexInternetmarketing/PerplexMail-for-Umbraco

Public Methods

Method Description
EmailTag ( ) : System

Creates a basic email tag. This tag can be used when sending a PerplexMail email to replace tags with text values.

EmailTag ( string tag, bool state ) : System

Creates a basic if tag. This tag can be used to show or hide specific content in emails sent by the email package. For example the text with tags: [#IsVehicle#]Text about vehicle details[#/IsVehicle#] is VISIBLE if the tag "IsVehicle" is TRUE and HIDDEN when FALSE.

EmailTag ( string tag, string value ) : System

Creates a basic email tag. This tag can be used when sending a PerplexMail email to replace tags with text values.

Private Methods

Method Description
sanitizeTag ( string tag ) : string

This function strips all opening [# and closing #] characters for a tag. The email pacakge will already handle this for us.

Method Details

EmailTag() public method

Creates a basic email tag. This tag can be used when sending a PerplexMail email to replace tags with text values.
public EmailTag ( ) : System
return System

EmailTag() public method

Creates a basic if tag. This tag can be used to show or hide specific content in emails sent by the email package. For example the text with tags: [#IsVehicle#]Text about vehicle details[#/IsVehicle#] is VISIBLE if the tag "IsVehicle" is TRUE and HIDDEN when FALSE.
public EmailTag ( string tag, bool state ) : System
tag string The tagname, without any prefix [# or suffix #]
state bool True (to show the content) or False (to hide the content)
return System

EmailTag() public method

Creates a basic email tag. This tag can be used when sending a PerplexMail email to replace tags with text values.
public EmailTag ( string tag, string value ) : System
tag string The tagname, without any prefix [# or suffix #]
value string The value to replace the tags with (in the email)
return System