Topic: [Solved] Eform 1.4.4 - 0.9.6RC3 - ccsender spawns blank email  (Read 3264 times)

Pages: [1]   Go Down

#1: 24-Apr-2007, 11:35 AM


nowhinjing
Posts: 29

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
« Last Edit: 27-Apr-2007, 08:26 AM by TobyL »

#2: 24-Apr-2007, 09:22 PM

Coding Team

pixelchutes
Posts: 887

WWW
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 Team Member / Contributor
[Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
________________________________
Where every pixel matters.

#3: 25-Apr-2007, 04:24 AM

Moderator

TobyL
Posts: 1,024

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)
Code:
//<?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'";
}
//?>




« Last Edit: 18-May-2007, 11:19 PM by TobyL »

#4: 25-Apr-2007, 11:40 AM


nowhinjing
Posts: 29

Thanks, Jelle

this fixes the problem.

 Grin NWJ

#5: 25-Apr-2007, 11:47 AM

Coding Team

sottwell
Posts: 10,529

WWW
Yes, thank you VERY much!  Cheesy
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html

#6: 25-Apr-2007, 11:36 PM

Coding Team

pixelchutes
Posts: 887

WWW
Yes, thank you VERY much!  Cheesy

Yes, Thank You!! Any idea if this has made it to the latest SVN? ( > rev.2592)
Mike Reid - www.pixelchutes.com
MODx Team Member / Contributor
[Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
________________________________
Where every pixel matters.

#7: 26-Apr-2007, 03:28 AM

Moderator

TobyL
Posts: 1,024


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
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.