Share via


SysMailerNet.addRelatedBodyPart Method [AX 2012]

A related bodypart is typically an image embedded in the mail (instead of being referenced from an outside url if in the HTML file there's a tag, then an image from d:\myimage.jpg can be embedded like this: addRelatedBodyPart("d:\\myimage.jpg","myimageref")

Syntax

public void addRelatedBodyPart(
    str fileName, 
   [str contentId, 
    CLRObject contentLink, 
    CLRObject contentType, 
    CLRObject linkXferEncoding])

Run On

Called

Parameters

  • fileName
    Type: str
    File name of the linked resource
  • contentId
    Type: str
    Content-Id of the resource
  • linkXferEncoding
    Type: CLRObject Class
    Transfer encoding. Defaults to EightBit if none specified.

Remarks

This adds a linked resource to the html message. The content-id or content-location can be specified along with a content-type parameter. Refere .NET Frameworks' System.Net.Mail.LinkedResource documentation for details

See Also

Reference

SysMailerNet Class