Archived Forum Post

Index of archived forum posts

Question:

Problem in Chilkat.Email with BCC

Nov 08 '15 at 10:09

In the update of ActiveX and .NET components after version 5.9.47 to 5.9.48 until most recent, the BCC is no longer saved in XML or EML (In previous versions of EML, BCC do not work also) when saved to disk.
It happens to the AddBcc and AddMultipleBcc methods.

Code

Chilkat.Email email = new Chilkat.Email();
email.AddTo("Chilkat Support", "support@chilkatsoft.com");
email.AddCC("Person 4", "person4@chilkatsoft.com");
email.AddMultipleBcc("", "person7@chilkatsoft.com");
email.Body = "this is a test";
email.SaveXml(@"c:\temp\email.xml");
email.SaveEml(@"c:\temp\email.eml");

9.5.47 – XML

<?xml version="1.0" encoding="utf-8" ?> 
<mime_message> 
<header> 
<mime-version>1.0</mime-version> 
<date>Thu, 05 Nov 2015 09:41:33 -0200</date> 
<message-id> &lt;5974D4C6A6AA28BE40ACFB7A5F86B9B70A76F5B7@ES051&gt; 
</message-id> 
<content-type format="flowed"> 
text/plain 
</content-type> 
<content-transfer-encoding>7bit</content-transfer-encoding> 
<x-priority>3 (Normal)</x-priority> 
<to> 
<address> 
    <addr>support@chilkatsoft.com</addr> 
    <name>Chilkat Support
</name> 
</address> 
</to> 
<cc> 
<address> 
    <addr>person4@chilkatsoft.com</addr> 
    <name>Person 4</name> 
</address> 
</cc> 
<subject>this is a test</subject> 
<bcc> 
<address> 
    <addr>person7@chilkatsoft.com</addr> 
    <name/> 
</address> 
</bcc>
</header> 
<body> this is a test
</body> 
</mime_message>

9.5.47 – EML

MIME-Version: 1.0
Date: Thu, 05 Nov 2015 09:41:33 -0200
Message-ID: <5974D4C6A6AA28BE40ACFB7A5F86B9B70A76F5B7@ES051>
Content-Type: text/plain; format=flowed
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
To: Chilkat Support support@chilkatsoft.com
Cc: Person 4 person4@chilkatsoft.com
Subject: this is a test

this is a test

9.5.48 – XML

<?xml version="1.0" encoding="utf-8" ?> 
<mime_message> 
    <header> 
        <mime-version>1.0</mime-version> 
        <date>Thu, 05 Nov 2015 08:59:43 -0200</date> 
        <message-id>&lt;88BF3CA0AD3311CC8C7DAA3A7B2E930D0C363A48@ES051&gt;</message-id> 
        <content-type format="flowed">text/plain</content-type> 
        <content-transfer-encoding>7bit</content-transfer-encoding> 
        <x-priority>3 (Normal)</x-priority> 
        <to> 
            <address> 
                <addr>support@chilkatsoft.com</addr> 
                <name>Chilkat Support</name> 
            </address> 
        </to> 
        <cc> 
            <address> 
                <addr>person4@chilkatsoft.com</addr> 
                <name>Person 4</name> 
            </address> 
        </cc> 
        <subject>this is a test</subject> 
    </header> 
    <body><![CDATA[this is a test]]></body> 
</mime_message>

9.5.48 – EML

MIME-Version: 1.0
Date: Thu, 05 Nov 2015 08:59:43 -0200
Message-ID: <88BF3CA0AD3311CC8C7DAA3A7B2E930D0C363A48@ES051>
Content-Type: text/plain; format=flowed
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
To: "Chilkat Support" support@chilkatsoft.com
Cc: "Person 4" person4@chilkatsoft.com
Subject: this is a test

this is a test

Accepted Answer

This new ActiveX build should fix it:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-x64.zip

If you need .NET, I would need to know the .NET Framework.


Answer

Thanks, I'll have a look.


Answer

It worked, the saveXML method, I use this method currently. But SaveEML method has not written the BCC in the file. The my .NET version is 4.0, but is not critical and I'm using nuget in this project. Is there any date for final release?


Answer

You used: email.AddMultipleBcc("", "person7@chilkatsoft.com"); implying that you think the first element is the name and the 2nd the address.

But, afaik, AddMultipleBcc() doesn't work that way.
The input to this functions is a comma separated list of FULL email addresses. So the first "" might have caused the function to choke.