PureContentID Property


Returns undecorated value of "Content-ID" header (trimming quotes and "<>" symbols). ContentIDs are referred to in message body as CIDs.

Suppose one of the message's attachments has ContentID property = "<122234@43500-2c04>" and the following tag is present somewhere in the message body:

<IMG SRC="CID:122234@43500-2c04" WIDTH="100" HEIGHT="60">

In this case PureContentId = "122234@43500-2c04" (angle brackets were trimmed). Because this value is equal to CID value in IMG SRC tag, the image for the tag must be taken from this attachment.


Value Type: String
Parameters: None 
Remarks: This property is read-only

Usage example:

Dim Mailer, Msg, Attach
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.Connected Then
  If Mailer.MessageCount > 0 Then
    Set Msg = Mailer.RetrieveSingleMessage(1)
    If Not Msg Is Nothing Then
      For Each Attach In Msg.Attachments
        MsgBox "PureContentID = " & Attach.PureContentID
      Next
    End If
  End If
  Mailer.Disconnect
End If

See Also:

ContentID Property
IsInline Property


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.