I am using FormToEmail.php free script to send some form data from a page where user enters their email and recipient’s email and obviously some text as message.
In FormToEmail.php there is a place where I insert the email which I would like the content to be submitted.
I need to set the email which is entered as “recipient’s” email dynamically in FormToEmail.php file so that the content will get emailed to recipient’s email. How do I do that?
There is a text in comments of that script:
After comments block there is a line:
Suppose you have harcoded address instead of “delete these ….”. You should simply replace that line with:
Where
recepient_email_field_nameis name of a field on a form where user should enter his email and default email address should be replaced with that email you have there currently.