Link to home
Start Free TrialLog in
Avatar of lakers2009
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" ...
Avatar of duncancumming
duncancumming
Flag of United Kingdom of Great Britain and Northern Ireland image

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?  
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>
typo sorry

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

test email
</cfmail>
ASKER CERTIFIED SOLUTION
Avatar of lakers2009
lakers2009

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lakers2009
lakers2009

ASKER

sorry i mean i should have # at both end, quick typing
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