Remove Link to Dashboard Reports from Email(Solved)

Permalink
Hello

It's possible to remove the link to example.com/dashboard/reports.... from the emails that I get from Form Block?

I found how to delete the ID but can not understand how to delete the all link..
$mh = Loader::helper('mail');
            $mh->to( $this->recipientEmail ); 
            $mh->from( $formFormEmailAddress ); 
            $mh->replyto( $replyToEmailAddress ); 
            $mh->addParameter('formName', $this->surveyName);
            //$mh->addParameter('questionSetId', $this->questionSetId);
            $mh->addParameter('questionAnswerPairs', $questionAnswerPairs); 
            $mh->load('block_form_submission');
            $mh->setSubject(t('%s Form Submission', $this->surveyName));
            //echo $mh->body.'<br>';
            @$mh->sendMail();


And what parts can I remove to prevent that reports to be stored inside the database? Because send the email it's the only part that I need I don't want my database get filled with a lot of reports.

And one last question, is there anyway of create a nice email, how can I add some mockup to my emails?

Thank you very much for all the help.
Best Regards!

pedroserapio
 
pedroserapio replied on at Permalink Reply
pedroserapio
Any ideas how and where can I start customizing the HTML created by the Email Form?
Best Regards and thank you very much!
pedroserapio replied on at Permalink Reply
pedroserapio
I know I'm new to this. Anyone tried how to edit the HTML outputted by the Form Block?
jordanlev replied on at Permalink Reply
jordanlev
Your hint here is this line:
$mh->load('block_form_submission');

That means there is an email template file called "block_form_submission.php" somewhere, in a folder called "mail". I'm not sure how 5.7 works, but in 5.6 this would be located in /concrete/mail/block_form_submissions.php.

Hope that helps!
Cahueya replied on at Permalink Reply
Yes, in 5.7, the file is in /root/concrete/mail

To override it safeley (so your override will not be killed by a concrete5 update), copy the file to

root/application/mail and do your changes there.



PS: I am happy to read from Jordan here :)
MrKDilkington replied on at Permalink Reply
MrKDilkington
"PS: I am happy to read from Jordan here :)"

I am in total agreement.

Having jordanlev as a voice for 5.7 is very important.
jordanlev replied on at Permalink Reply
jordanlev
Thanks for the kind words, but I'm actually a pretty loud "voice" for 5.6... I think 5.7 needs some UI improvements before it's ready to be used by my clients. Hopefully soon though!
MrKDilkington replied on at Permalink Reply
MrKDilkington
What specific UI improvements do you feel are most needed?
pedroserapio replied on at Permalink Reply
pedroserapio
If you don't mind that I give my personal opinion, in 5.6 I really like the click over the Block and add new Blocks, more practical and quick way of building a page instead of trying fly with blocks and aim always to the wrong Area.
pedroserapio replied on at Permalink Reply
pedroserapio
I want to thank you very much both, jordanlev and Cahueya. I'm checking the file and I will customize.

Jordan, I saw a old post made by you and I changed $body to $bodyHTML , now I can customize the email and send with HTML.

Thank so much.
Best regards!