anonymous emailing form results

Permalink
Someone has asked a similar question before but it was never asnwered.

It is possible to change the From field of the email being sent from concrete5?

Getting concrete to send to my work e-mail results in it vanishing into the spam bin which I never get to see or access. It comes from anonymous@myserver. I really don't want to get "the look" from the IT guy when I ask him to whitelist an anonymous e-mail account from my webserver.

Is there a simple way of changing code to mke this happen? If so, where do I start looking and tweaking?

 
andrew replied on at Permalink Reply
andrew
sorry for the delay.

Try opening up

concrete/blocks/form/controller.php

and searching for the line

$mh = Loader::helper('mail');
$mh->to( $this->recipientEmail );


Add:

$mh->from('email@address.com');


Above to() and that should set the "from" address.

In the future we should provide some way to do this without you having to hack this file.
Kahunanui replied on at Permalink Reply
This will make my life so much easier. I must tell you that since I have been working with concrete5, the learning curve is so mush easier than other platforms I have worked with in the past. The product shows the hard work and passion of you and your organization.