Link in emails generated in C5

Permalink 1 user found helpful
Hi Guys

Is there a way I can delete the link it puts on the end of emails generated in C5 that link into the reports section? My client wants this taken off.

I tried deleting '$formDisplayUrl' but this seems to delete the full email?!?

Please help!

senshidigital
 
senshidigital replied on at Permalink Reply
senshidigital
Found a way. You have to alter the block_form_submission.php within the mail folder (copy to the top level mail folder first) to the following:

<?php  
defined('C5_EXECUTE') or die(_("Access Denied."));
$submittedData='';
foreach($questionAnswerPairs as $questionAnswerPair){
   $submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answer']."\r\n"."\r\n";
} 
$formDisplayUrl;
$body = t("
There has been a submission of the form %s on the Exco InTouch website.
%s
%s 
", $formName, $submittedData, $formDisplayUrl);


You have to keep both $formDisplayUrl in but take away the other bits and it works.
fastcrash replied on at Permalink Reply
fastcrash
thank you dojo, i have searching a while how to custom email result template, so this is the file to proccess it. Big helps!
senshidigital replied on at Permalink Reply
senshidigital
No problem at all!