Contact form "From:" email

Permalink 5 users found helpful
Does anyone know how I can change the From: email on any given form?

 
Ekko replied on at Permalink Reply
Ekko
Look in helpers/mail.php, 1ine 125.

$from = 'XXXXXXX@' . str_replace(array('http://', 'https://'), '', BASE_URL);

where it says from 'XXXXXX@' change to support@coolwebsite.com or whatever you want
PatrickHeck replied on at Permalink Reply
PatrickHeck
I think at least for the current version it should be a better solution to define the email address in config/site.php.
Just add this somewhere in the file:
define('EMAIL_DEFAULT_FROM_ADDRESS', 'me@myself.de');
define('EMAIL_DEFAULT_FROM_NAME', 'Myself');
define('FORM_BLOCK_SENDER_EMAIL', EMAIL_DEFAULT_FROM_ADDRESS);


For more options have a look at Mesuva's cheat sheet:http://www.mesuva.com.au/blog/technical-notes/concrete5-cheat-sheet...

Best
Patrick
dilio replied on at Permalink Reply
dilio
Thank you very much, that worked well!