lakers2009
asked on
bcc, cc is not working
i use cfmail to send out mail, i also have cc and bcc but it is not working at all. from and to is fine but for some reason, either cc or bcc is receiving email. is there configuration somwhere or i must have done something wrong, please give some advice
<cfmail from="#form.from" to="#form.to" bcc="#form.from" ...
<cfmail from="#form.from" to="#form.to" bcc="#form.from" ...
i do not know why but it works for me
<cfmail from="#form.from" to="#form.to" bcc="#form.from" subject="test">
test email
</cfmail>
<cfmail from="#form.from" to="#form.to" bcc="#form.from" subject="test">
test email
</cfmail>
typo sorry
<cfmail from="#form.from" to="#form.to" bcc="#form.from#" subject="test">
test email
</cfmail>
<cfmail from="#form.from" to="#form.to" bcc="#form.from#" subject="test">
test email
</cfmail>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry i mean i should have # at both end, quick typing
ASKER
i restarted the services and reset email connection on the mail server and it worked now so there you go.
it works like a charm form me. Make sure that you have smtp setup in you ColdFusion Administrator
SO the problem is your CF Server
<cfmail from="#form.from" to="#form.to" bcc="#form.from" ...
should be
<cfmail from="#form.from#" to="#form.to#" bcc="#form.from#" ...
is it a problem with the actual email addresses themselves? What happens if you put the same address as the to address into cc and bcc?