Does not send content of body

lennart - August 9, 2005 - 14:49
Project:Mail
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Hi,

When I send mail of a node the title and submitted info is sent - but NOT the body content of the node!

Best
Lennart

#1

lennart - August 9, 2005 - 15:38

after some further experimenting I can conclude that the content of the body is NOT sent to any recievers

* even when I send as admin (user=1),
* completely regardless of any settings of mail.module
* regardless of roles
* regardless of whether users choose to recieve mail or not

#2

nedjo - August 9, 2005 - 16:03

Thanks for the note. Please give give details on the steps you followed, and any messages. What content type have you designated as mailed?

#3

lennart - August 9, 2005 - 17:25

hi nedjo,

I installed the module as usual and activated it
I went to content types acitivated email for content type email
I created node type email - filled out title and body
I set it to send to some user roles - plus tired different settings such as plain, html etc.
I submitted

I got no messages except that the node had been sent to the assigned roles

I then recieved emails at the users assigned for recieving, BUT only the title and submitted info was there - in the body of the email the content from the node was missing - nothing there except title and submitted by .... at ....

thanks
Lennart

#4

lennart - August 9, 2005 - 23:46
Priority:critical» minor

Changed priority because it is now clear from my testing with other themes that the problem results only in combination with my custom theme ( presumably node.tpl.php )

I will report back with more info as soon as I isolate the problem completely.

Best
Lennart

#5

lennart - August 10, 2005 - 01:16
Status:active» fixed

I made a fairly standard node-mail.tpl.php for the mail type content - and now the body content is showing up without problems in the emails.

This still means I will not be able to email other content types, but I can live with that ;-)

My node.tpl.php is very modified, and something in it somehow stops mail.module from being able to mail body content from nodes based on it.

<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
  <?php if ($page == 0): ?>
    <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><div class="title"><?php print $title ?><hr>
</div></a></h2>
  <?php endif; ?>
  <?php print $picture ?>

<div class="submitted"><?php print $submitted ?></div>



   <?php if ($terms) {
          print
'<div class="terms">';
          print 
'   '. $terms'</div>';
        }

        if (
$links): ?>



 
<?php if ($node->og_groups) {
          for (
$ind=0; $ind < count($node->og_groups); $ind++) {
           
$og_links[] = l($node->og_groups_names[$ind], 'node/' . $node->og_groups[$ind]);
          }
         
$og_links = theme('links', $og_links);
          print
'<div class="groups">';
          print
'   '. $og_links. '</div>';
   }
?>




<?php $blocks = theme('flexiblock_blocks', 8); ?>
<?php if ($blocks) { ?><div class="block-node">
<?php foreach ( $blocks as $block ) { ?>
<h3 class="title"><?php echo $block['subject']; ?></h3>
<div class="terms"><?php echo $block['content']; ?></div>
<?php } ?>

</div>

<?php } ?>

If someone knows what it is, please tell me.

Best
Lennart

#6

Anonymous - August 24, 2005 - 02:00

#7

Anonymous - September 7, 2005 - 04:19

#8

lennart - September 7, 2005 - 08:59
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.