I have a form which sends emails to various departments, but I am having problems getting the 'from' email address to show the email address entered in the email form field.
I have used the following code:-
<cfmail to="#form.options#" from="#form.email#" subject="A message has arrived from the **** website" username="***@gmail.com" password="****1" type="html">
Name: #form.name#
<br>Email: #form.email#
<br>Mobile: #form.mobile#
<br>Message: #form.message#
<br>Date: #form.datein#
</cfmail>
Is there something obvious I should change here?
Any help much appreciated.