The source code in this mod seems slightly different to what I'm using right now, so I'll adjust what I did according to what you have.
Sources/Contact2.php
// For send mail function
require_once($sourcedir . '/Subs-Post.php');
$icon = '';
$board = 112; // Change to match your desired board number
$msgOptions = array(
'id' => 0,
'subject' => '(' . $from . ') ' . $subject,
'icon' => $icon,
'body' => $message . ' (email ' . $email . ') (IP ' . $_SERVER['REMOTE_ADDR'] . ')',
'smileys_enabled' => false,
);
$topicOptions = array(
'id' => 0,
'board' => $board,
'mark_as_read' => true,
);
$posterOptions = array(
'id' => '',
);
createPost($msgOptions, $topicOptions, $posterOptions);
Just tinker around with the message/body until it suits your style.
I actually created a formatted table within the created post, but that's something you can experiment with.