Hi Guys

couple of questions I have the module installed fine and use echo
and have created a plain theme for use of the emails and pointed the module to this theme
but how do I

1, add the logo of the site to the email as it dosnt seem to do this automatically
2, remove the "You are here" and "Home" text from the email

I have placed the htmlmail.tpl.php and htmlmail--simplenews.tpl.php files to the theme directory and it seems to be using them ok as I add for test a hi there txt and email does show it so think i'm good on the installation ??

Comments

maori’s picture

Found out how to do question 2

but question 1 is no go still :(

maori’s picture

Issue summary: View changes

formatted better

Yorgg’s picture

I added

<?php echo $header; ?>
<?php echo $logo; ?>

into the .tpl.php file but I am seeing this

Notice: Undefined variable: header in include() (line 119 of /Applications/MAMP/htdocs/develphase/themes/bartik/htmlmail--htmlmail.tpl.php).
Notice: Undefined variable: logo in include() (line 120 of /Applications/MAMP/htdocs/develphase/themes/bartik/htmlmail--htmlmail.tpl.php).

I tried both mime mail and mail mime and most mailsystem's combination with smtp possible ( since I really need smtp on this computer) and the issue remains the same. Basically no header or footer ( the footer is misplaced). I also have echo and emogrifer installed.

@maori: How did you do point 2? I think that is where we add the theme variables.

modiphier’s picture

Hello,

I have tried every combination. Copied both htmlmail--.tpl.php files to many different theme folders, tried multiple themes including garland, installed emogifier, echo (doesn't work so i uninstalled it. All kind of errors when viewing admin pages and I searched for a fix for that but nothing.. (I think i remember it having to do with xml and or html5 and not being able to handle it as of yet.) mimemail, mailsystem all of it .. read every post I could even found a couple of dated how-tos, tried switching up the text formats from the one I created with just emogifier and pathologic to full html.. If I copy anything from my themes page.tpl.php or html.tpl.php to the htmlmail--htmlmail.tpl.php as well as just htmlmail.tpl.php and althought I do see the debug message and I have managed to see it display the h1 tag from the tpl file I cannot get it to wrap the test email with any header or anything css from my theme. I am using mostly artisteer themes I have even created one just for a newsletter content type at 600px wide which doesn't really matter because artisteer themes are responsive and disabled all blocks except for the footer block and if I add any of the variables to the htmlmail.tpl.php files I just get undefined include errors or something and no wrap of the theme.

I have noticed the source code of the sent test email change when switching from mimemail and htmlmail and switching the text formats but still nothing I have tried is displaying anything but the text I place in the test email (body) input field. It is formatted html so the send email as html is working but not any aspect of the theme.

Anybody know the trick to getting this to work,. I have searched and any posts I find regarding this do not have any answers even though they were posted quite a while ago.

I'm really looking to eventually create templates for various webforms so when printed they look like a valid word doc instead of a raw email message.

thanks,
Paul

salvis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)