$WBCID - mail content ID

Availability
$WBCID is available for use with mail-related WBSP commands (P and L):

Syntax
$WBCID{filename}
$WBCID[filename]

Parameters
filename - the name of the file embedded to the mail message (using WB_Embed variable).

Returns
The CID (content id) value of filename generated during the embedding process. Please note that filename argument of $WBCID function must be exactly the same as file name used in the WB_Embed variable.
If you change $wbcid[/poster.jpg] to $wbcid[poster.jpg] in the following example, the function will not return proper CID even if "/poster.jpg" and "poster.jpg" are both referencing the same file (e.g. both WBSP file and poster.jpg are located in the document root).

<!--
[FormFields]
wb_command=P
wb_mailserver=mail.whizbase.com
wb_to=info@whizbase.com
wb_from=info@whizbase.com
wb_subject=Test for WBCid
wb_embed=/poster.jpg,/alphabet.gif
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBCID</title>
</head>
<body>

<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td><img border="0" src="$wbcid[/poster.jpg]" width="320" height="422"></td>
<td><img border="0" src="$wbcid[/alphabet.gif]" width="300" height="300"></td>
</tr>
</table>

</body>
</html>