$subject, 'body' => $body, )); ?>
Contact us'; echo CHtml::mailto($linkText, 'contact@example.com'); ?>This creates a hyperlink with custom HTML, allowing for more design flexibility. In this example, the hyperlink displays an envelope icon and the text "Contact us", and opens the user's email client with "contact@example.com" as the recipient. CHtml is a part of the Yii framework, a package library for creating web applications in PHP.