mimemail-message.tpl.php in Mime Mail 6
Same filename and directory in other branches
Default theme implementation to format an HTML mail.
Copy this file in your default theme folder to create a custom themed mail. Rename it to mimemail-message--[mailkey].tpl.php to override it for a specific mail.
Available variables:
- $subject: The message subject.
- $body: The message body in HTML format.
- $mailkey: The message identifier.
- $recipient: An email address or user object who is receiving the message.
- $css: Internal style sheets.
See also
1 theme call to mimemail-message.tpl.php
- mimemail_prepare_message in ./
mimemail.module - Default engine's prepare function.
File
theme/mimemail-message.tpl.phpView source
<?php
/**
* @file
* Default theme implementation to format an HTML mail.
*
* Copy this file in your default theme folder to create a custom themed mail.
* Rename it to mimemail-message--[mailkey].tpl.php to override it for a
* specific mail.
*
* Available variables:
* - $subject: The message subject.
* - $body: The message body in HTML format.
* - $mailkey: The message identifier.
* - $recipient: An email address or user object who is receiving the message.
* - $css: Internal style sheets.
*
* @see template_preprocess_mimemail_message()
*/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
if ($css) {
?>
<style type="text/css">
<!--
<?php
print $css;
?>
-->
</style>
<?php
}
?>
</head>
<body id="mimemail-body" <?php
if ($mailkey) {
print 'class="' . $mailkey . '"';
}
?>>
<div id="center">
<div id="main">
<?php
print $body;
?>
</div>
</div>
</body>
</html>