We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21841
    • 36 Posts
    Hi,

    specifying that a message should be sent to the sender’s email (ccsender=1) generates 2 emails, one correct and the other containing two single quotes ’’.

    I have managed to identify that this arises because the code believes that autotext is set - line 485.

    The only place that I can see that it is set is line 109 - but why and how this happens is beyond me.

    HELP ! embarrassed

    NWJ
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      You know what? I’m getting this one too, only I’m not even using &ccsender. (096 RC3 eForm)

      I’m just using &report, haven’t figured out how to prevent the extra blank email that get sent to me.
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 30223
        • 1,010 Posts
        Ok, confirmed,... and I’m working on it. I’ll post a fix when I’ve solved it.

        UPDATE!

        DOohHHH...! Me brain dead sometimes... The $autotext generated an empty (besides 2 single quotes) error message if no template for it could be found, regardless if &automessage was set!

        Replace the code on line 105 - 110 with this (without the php tags off course)
        //<?php
        	if($isPostBack){
        		$report = (($tmp=efLoadTemplate($report))!==false)?$tmp:$_lang['ef_no_doc'] . " '$report'";
        		if($thankyou) $thankyou = (($tmp=efLoadTemplate($thankyou))!==false )?$tmp:$_lang['ef_no_doc'] . " '$thankyou'";
        		if($autotext) $autotext = (($tmp=efLoadTemplate($autotext))!==false )?$tmp:$_lang['ef_no_doc'] . " '$autotext'";
        	}
        //?>
        




          • 21841
          • 36 Posts
          Thanks, Jelle

          this fixes the problem.

          grin NWJ
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Yes, thank you VERY much! laugh
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 23491 ☆ A M B ☆
              • 1,056 Posts
              Quote from: sottwell at Apr 25, 2007, 11:47 AM

              Yes, thank you VERY much! laugh

              Yes, Thank You!! Any idea if this has made it to the latest SVN? ( > rev.2592)
                Mike Reid - www.pixelchutes.com
                MODx Ambassador / Contributor
                [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                ________________________________
                Where every pixel matters.
                • 30223
                • 1,010 Posts
                Quote from: pixelchutes at Apr 25, 2007, 11:36 PM


                Yes, Thank You!! Any idea if this has made it to the latest SVN? ( > rev.2592)

                yes, I think so. I committed it to the 095 branch just before opengeek started moving things wink