MessageParserConfigAHRefSuffix Property
Gets or sets a string which should be added to all <A HREF> tags as their attribute.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public string AHRefSuffix { get; set; }

Property Value

Type: String
A string to be added to all <A HREF> tags as their attribute. The default value is an empty string (nothing gets added).

This and AHRefCleanup properties are usually used together.

Note Note
MessageParserConfig object cannot be used on its own. To access its members, the developer should use MailMessage.Parser property.
This sample loads the message from .EML file, removes Target attributes from all <A HREF> tags, and adds target=_blank instead. This will make all the links open in a new window.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

// The actual code (put it into a method of your class).
MailMessage msg = new MailMessage();
msg.Parser.AHRefCleanup = AHRefTagAttributes.Target;
msg.Parser.AHRefSuffix = "target=_blank";
See Also