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
- contentLink
Type: CLRObject Class
Content Uri of the resource
- contentType
Type: CLRObject Class
The MIME part Content type
- 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