Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: BCC is not saved to file Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 31 October 2008 at 6:34am | IP Logged Quote iconbill

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 View iconbill's Profile Search for other posts by iconbill
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 31 October 2008 at 8:38am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 03 November 2008 at 12:58am | IP Logged Quote iconbill

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 View iconbill's Profile Search for other posts by iconbill
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 03 November 2008 at 5:12am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide