When sending emails, all of the tags are being changed by check_plain(). This is causing the "send page by email" received to look more like a view->source of the page. The check_plain function is changing all '<' characters to &lt; and '>' to &gt;. I will supply a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tnathanjames’s picture

Here's my patch.

tnathanjames’s picture

Issue summary: View changes
billyg4585’s picture

@tnathanjames This was causing me a massive headache. This patch worked great. Should be fixed in the module, especially if others are having similar issues.

thomasaaron’s picture

I tried applying this patch. I still have a lot of CSS (I think) gibberish when emailing a page. It seems like it shows all of the source and css for the entire page. Here is a quick snippet of what I'm seeing in the received email ... Any ideas?

Level One Obedience Invoice .ctools-locked { color: red; border: 1px solid red; padding: 1em; } .ctools-owns-lock { background: #FFFFDD none repeat scroll 0 0; border: 1px solid #F0C020; padding: 1em; } a.ctools-ajaxing, input.ctools-ajaxing, button.ctools-ajaxing, select.ctools-ajaxing { padding-right: 18px !important; background: url(../images/status-active.gif) right center no-repeat; } div.ctools-ajaxing { float: left; width: 18px; background: url(../images/status-active.gif) center center no-repeat; } /** * @file * Generic theme-independent base styles. */ /** * Autocomplete. * * @see autocomplete.js */ /* Suggestion list */ #autocomplete { border: 1px solid; overflow: hidden; position: absolute; z-index: 100; } #autocomplete ul { list-style: none; list-style-image: none; margin: 0; padding: 0; } #autocomplete li { background: #fff; color: #000; cursor: default; white-space: pre; zoom: 1; /* IE7 */ } /* Animated throbber */ html.js input.form-autocomplete { background-image: url(../../misc/throbber-inactive.png); background-position: 100% center; /* LTR */ background-repeat: no-repeat; } html.js input.throbbing { background-image: url(../../misc/throbber-active.gif); background-position: 100% center; /* LTR */ } /** * Collapsible fieldsets. * * @see collapse.js */ html.js fieldset.collapsed { border-bottom-width: 0; border-left-width: 0; border-right-width: 0; height: 1em; } html.js fieldset.collapsed .fieldset-wrapper { display: none; } fieldset.collapsible { position: relative; } fieldset.collapsible .fieldset-legend { display: block; } /** * Resizable textareas. * * @see textarea.js */ .form-textarea-wrapper textarea { display: block; margin: 0; width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .resizable-textarea .grippie { background: #eee url(../../misc/grippie.png) no-repeat center 2px; border: 1px solid #ddd; border-top-width: 0; cursor: s-resize; height: 9px; overflow: hidden; } /** * TableDrag behavior. * * @see tabledrag.js */ body.drag { cursor: move; } .draggable a.tabledrag-handle { cursor: move; float: left; /*

...and it goes on and on.

Any assistance appreciated.

thomasaaron’s picture

I found out that the reason this module was throwing gibberish was not at all this module. It does not work well with the "SMTP Authorization" module --IF-- you enable that module via its configurations to send email as HTML. If you disable that option, this module works fine.