<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Creating a Mail Group fails with SmarterMail100 provider - General Questions				            </title>
            <link>https://solidcp.com/forum/question/creating-a-mail-group-fails-with-smartermail100-provider/</link>
            <description>SolidCP Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 16 Mar 2026 06:11:59 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Creating a Mail Group fails with SmarterMail100 provider</title>
                        <link>https://solidcp.com/forum/question/creating-a-mail-group-fails-with-smartermail100-provider/#post-10859</link>
                        <pubDate>Sat, 21 Feb 2026 18:23:24 +0000</pubDate>
                        <description><![CDATA[Resolved with the latest SmarterMail build 9546&quot;Fixed: An issue with the legacy SOAP API and obfuscation&quot;...another SmarterMail bug wasting my time...]]></description>
                        <content:encoded><![CDATA[<p>Resolved with the latest SmarterMail build 9546<br />"Fixed: An issue with the legacy SOAP API and obfuscation"<br /><br />...another SmarterMail bug wasting my time...<br /><br /><br /></p>]]></content:encoded>
						                            <category domain="https://solidcp.com/forum/question/">General Questions</category>                        <dc:creator>Duarte</dc:creator>
                        <guid isPermaLink="true">https://solidcp.com/forum/question/creating-a-mail-group-fails-with-smartermail100-provider/#post-10859</guid>
                    </item>
				                    <item>
                        <title>Creating a Mail Group fails with SmarterMail100 provider</title>
                        <link>https://solidcp.com/forum/question/creating-a-mail-group-fails-with-smartermail100-provider/#post-10855</link>
                        <pubDate>Fri, 20 Feb 2026 19:45:28 +0000</pubDate>
                        <description><![CDATA[Hi,When trying to create a Mail Group in the SolidCP Portal (Hosting Spaces &gt; Mail &gt; Groups &gt; Create Mail Group), the operation fails with:Accessed JArray values with invalid key va...]]></description>
                        <content:encoded><![CDATA[<p class="font-claude-response-body break-words whitespace-normal leading-">Hi,<br /><br />When trying to create a Mail Group in the SolidCP Portal (Hosting Spaces &gt; Mail &gt; Groups &gt; Create Mail Group), the operation fails with:<br /><code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">Accessed JArray values with invalid key value: "name". Int32 array index expected.</code></p>
<p class="font-claude-response-body break-words whitespace-normal leading-">The error occurs in the <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">GroupExists()</code> method in <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">SmarterMail100.cs</code>, which is called to check if a group already exists before creating it.</p>
<p class="font-claude-response-body break-words whitespace-normal leading-"><strong>Possible root cause:<br /></strong>Looking at the code, <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">GroupExists()</code> appears to use dynamic property access on the JSON response from the SmarterMail API:<br /><code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">if (gridinfo.name == groupNameUser)</code></p>
<p class="font-claude-response-body break-words whitespace-normal leading-">Since the SmarterMail API returns a JArray for <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">gridInfo</code>, this may not work correctly with Newtonsoft.Json 13.0.x, which doesn't support dynamic member access on JArray objects.</p>
<p class="font-claude-response-body break-words whitespace-normal leading-"><strong>Possible fix</strong> — replace with explicit indexer access:<br /><code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">if (gridinfo.ToString() == groupNameUser)</code></p>
<p class="font-claude-response-body break-words whitespace-normal leading-">I noticed that <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">MailAliasExists()</code> in the same file already uses this pattern (<code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">aliases.ToString()</code>), which works correctly.</p>
<p class="font-claude-response-body break-words whitespace-normal leading-"><strong><br />Environment:</strong></p>
<ul class=":mb-0 :mt-1 :gap-1 :pb-1 :pb-1 list-disc flex flex-col gap-1 pl-8 mb-3">
<li class="whitespace-normal break-words pl-2">SolidCP v1.5.1</li>
<li class="whitespace-normal break-words pl-2">SmarterMail Build 9540+</li>
<li class="whitespace-normal break-words pl-2">Newtonsoft.Json 13.0.x</li>
</ul>
<p class="font-claude-response-body break-words whitespace-normal leading-">I wasn't able to compile and test the fix due to build dependency issues. Has anyone encountered this problem or can confirm?</p>]]></content:encoded>
						                            <category domain="https://solidcp.com/forum/question/">General Questions</category>                        <dc:creator>Duarte</dc:creator>
                        <guid isPermaLink="true">https://solidcp.com/forum/question/creating-a-mail-group-fails-with-smartermail100-provider/#post-10855</guid>
                    </item>
							        </channel>
        </rss>
		