Site icon Hip-Hop Website Design and Development

Can I exploit shortcodes in mail physique

Can I put any sort of customized shortcode for some content material in mail physique?

eg:

$to = "take a look at@take a look at.com";
$topic = "Check Electronic mail";

$packages = do_shortcode('[test id="0000"]');

$message = $packages;

// At all times set content-type when sending HTML electronic mail
$headers = "MIME-Model: 1.0" . "rn";
$headers .= "Content material-type:textual content/html;charset=UTF-8" . "rn";

// Extra headers
$headers .= 'From: <webmaster@instance.com>' . "rn";

mail($to,$topic,$message,$headers)