Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

cfform to email - sending from email form field?

$
0
0

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.


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>