Author |
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 31 October 2008 at 6:34am | IP Logged
|
|
|
Why is the BCC (BCCAddr) not saved to the file when i'm using .SaveMessage ?
I know the BCC value will be removed when passing any SMTP server.
But why is your component not saving this value? I need to have this value in the saved file!
Kind regards,
Marco
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 31 October 2008 at 8:38am | IP Logged
|
|
|
BCC message header contains private information and is not stored in .eml files generated by SaveMessage method.
If you need to store BCC information, you may place it to any other header, say X-BCC, and restore this info in BCC before sending mail.
Alternatively, you may use the following trick to add BCC header into a message:
Code:
Msg.RawBody = Msg.RawBody
Msg.MinimalRebuild = true
Msg.AddHeader "BCC", "mail_bcc@domain.com" |
|
|
This code should be used right before using SaveMessage method.
Regards,
Igor
|
Back to Top |
|
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 03 November 2008 at 12:58am | IP Logged
|
|
|
With your 'trick' i still need to use '.GetHeader("BCC")' for read the BCC value. Because '.BCCAddr' still returns nothing.
Anyway, it's have a workarround....but i'm not happy with this trick!
If I save the file, I really think I must be allowed to save the BCC header in a normal way! I want a 100% orginal saved file not a manipulated one.
The BCC means the other recipients will never see the BCC. I think this filtering must only be done by the SMTP-server and not by your component.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 03 November 2008 at 5:12am | IP Logged
|
|
|
Actually, SMTP server doesn't have to remove BCC headers, it's rather e-mail client task. Usually, when e-mail client submits message to SMTP server, it passes all recipients in "RCPT TO". So, it collects all recipients in To, CC, BCC fields and passes them to SMTP server. SMTP server gets the message without BCC. However, this behavior may be different, depends on SMTP client and SMTP server implementation.
|
Back to Top |
|
|