Thanks Stefan. Getting a bit frustrated with this bug as I can't reproduce it on my Windows 2008 64bit R851FP1 server. So in version 2.3 I'm going to use the following new code to see if this fixes this intermitent bug….
if(!Receiver.IsNull())
{
db1.CreateDocument(&maildoc); <br/>
if(!From.IsNull())<br/>
{<br/>
msgtext.SetValue(From);<br/>
}<br/>
...........................................<br/>
...........................................