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.
Contact form module?
Could you post a link? It's not an 'official' one, and many developers approach these simple tasks in various ways.
It sounds like it's far more complex than it needs to be. Often for a simple contact form a good solution is simply UserForms module.
In any case, using a defined static constant is not what you want to be doing if you're trying to send from the submitter's supplied address.
It's simply a case of setting the from parameter in the email to the submitted form field value.
Beyond that it's eceedingly simple to create a small form to use without needing a whole module. I would suggest perhaps looking at the tutorials (docs.silverstripe.org) to learn more.
Thank you. That helped me solve the issue. I did exactly as you said and the form is working fine now ("setting the from parameter in the email to the submitted form field value"). I appreciate the help. Next time, I'll consider using the UserForms Module.