Hello,
i am attempting to have the contact form module dynamically use the submitter's e-mail address in the "From" field when the e-mail is sent from the website. The code block i am including below mentions to define MAIL_FROM_ADDRESS in the mysite/_config.php file, but i am unsure how to do this. Any ideas? Thank you.
//You can define MAIL_FROM_ADDRESS in mysite/_config.php
$sender = null;
if(defined('MAIL_FROM_ADDRESS')) $sender = MAIL_FROM_ADDRESS;
$email = Email::create($sender, $emailTo, $emailSubject, $html);
if($replyTo) {
$email->replyTo($replyTo);
}