Boxer said:
That is what i'm currently doing, however I wanted to send one email
containing a file or files to recipient and CC, with the actual file
being
trasmitted to the recipient only and not the CC list. The CC list
just needs
to see the email and not to receive the actual file.
Can't be done. Only ONE copy of your message goes to all recipients.
The To, Cc, and Bcc fields in your e-mail client are NOT used to route
your mails. All recipients in those fields are aggregated into one list
of RCPT-TO commands that your e-mail client sends to the SMTP server
following by single DATA command that contains the content of your mail
(which includes headers and body). The mail server then sends out
multiple copies, one for each recipients. Since the e-mail client only
sends one copy, it is impossible to send different mails (same body but
different attachments) to different recipients.
You will need to send one copy of your mail to the recipient(s) that get
the attached file and then send another mail to those recipients that
don't get the attached file. There is no differentiation between the To
and Cc (and Bcc) fields. They are all recipients of your mail. There
is no differentiation between recipients listed in the To field from
those in the Cc field.