Finally was able to fix the issue. Added below 3 lines and it worked like a charm. Thank you so much for the continous help Leonard.
$message = New-Object Net.Mail.MailMessage($EmailFrom, $EmailTo, $Subject, $body)
$message.IsBodyHtml = $true;
$SMTPClient.Send($message)
Regards,
Sam