Hi,
You should turn off the display setting of the custom field for the email.
Instead, edit the "order status notification" via the menu System>Emails.
There, in the "HTML" section, you can add this:
Tracking code: <a href="https://www.post.ch/swisspost-tracking?formattedParcelCodes={VAR:order.trackingcode}">{VAR:order.trackingcode}</a>
The "list of available tags" button there is a great help to understand which tags you can add to the emails to customize them with extra data coming from the order.
Note however, that this will display regardless of whether you have something in the custom field or not. A simple solution to this, if that's a problem, based on how your shop is setup, would be to use the "per status override" in order to only add that text in the HTML for the order statuses where you know that the tracking code has already been filled, for all the orders.
A cleaner but more complex solution would be to add PHP code in the HTML, like this:
<?php if(!empty($data->trackingcode)) {
echo 'Tracking code: <a href="https://www.post.ch/swisspost-tracking?formattedParcelCodes='.$data->trackingcode.'">'.$data->trackingcode.'</a>';
}?>