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

Comments

lennart’s picture

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

nedjo’s picture

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

lennart’s picture

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

lennart’s picture

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

lennart’s picture

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

Anonymous’s picture

Anonymous’s picture

lennart’s picture

Status: Fixed » Closed (fixed)