Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am sending an email using SMTP from my ASP.Net application.

The sending is working fine but I want to send a different body for recipients in TO, CC and BCC.

Please let me know if it is possible and how it can be achieved.

Thanks in advance.
Posted
Updated 11-Nov-10 22:21pm
v2
Comments
Dalek Dave 12-Nov-10 4:21am    
Edited for Readability and Spelling.

This is not possible. You would need to send separate mails for to, cc and bcc.
 
Share this answer
 
Comments
jim lahey 12-Nov-10 3:44am    
this is true. the clue is in the name: cc=carbon copy
thatraja 12-Nov-10 4:13am    
True fact
Dalek Dave 12-Nov-10 4:21am    
You hit the nail on the head!
bcod ten 12-Nov-10 4:41am    
If I would send separate email then the to recipients do not get to see the cc & bcc recipients. How can this be resolved.
Sorry you can't send seperate body text to "To", "CC" "BCC" since all these properties are pointing to single mail object which has single property called "mailbody".
 
Share this answer
 
This isn't possible, by design. A single message can be sent to different recipients, and using BCC will hide addresses from the rest of the recipients, but each message will be sent to all recipients in the list.

If you want to make the messages sent to each unique class of recipient different, you'll need to create three different messages, one each for the TO, CC, and BCC recipients. Doing so creates a little extra burden for the email host, but it will probably be unnoticeable.
 
Share this answer
 
If I would send separate email then the to recipients do not get to see the cc & bcc recipients. How can this be resolved.
 
Share this answer
 
Comments
JF2015 12-Nov-10 4:47am    
At first: The "bcc" recipiens can't be seen in either way. That's why it's called "blind carbon copy".

If you want to let the "to" recipients know that you send a mail with a different body to the "cc" group, you would need to add this information to the mail body.

I think you really should not work with "to", "cc" and "bcc". Just add the information to the body of your mail.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900