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" ...
lakers2009Asked:
Who is Participating?
 
lakers2009Author Commented:
i know this is exactly what i have for both cc="#form.cc" and bcc="#form.bcc", it just doesn't work for me at all.
0
 
duncancummingCommented:
it might help to see your real syntax.  the example you give above isn't syntactically correct
<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?  
0
 
erikTsomikSystem Architect, CF programmer Commented:
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>
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
erikTsomikSystem Architect, CF programmer Commented:
typo sorry

<cfmail from="#form.from" to="#form.to" bcc="#form.from#" subject="test">

test email
</cfmail>
0
 
lakers2009Author Commented:
sorry i mean i should have # at both end, quick typing
0
 
lakers2009Author Commented:
i restarted the services and reset email connection on the mail server and it worked now so there you go.
0
 
erikTsomikSystem Architect, CF programmer Commented:
it works like a charm form me. Make sure that you have smtp setup in you ColdFusion Administrator
0
 
erikTsomikSystem Architect, CF programmer Commented:
SO the problem is your CF Server
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.