ByName is a
TIdMessageEncoderInfo class function in
TIdMessageEncoderList that retrieves information about a registered encoder class using the name specified in AName. If a registered encoder cannot be located with the specified name, an
EIdException exception is raised with the constant message
RSMessageEncoderNotFound the value in AName.
ByName is used by TIdMessage and TIdMessageParts when updating the value of the AttachmentEncoding property.