Replace the From address section in the TeamMailboxLibrary script library with the below to fix the problems with duplicate From fields when sending Email to the Internet and the Email being sent as the Internet address instead of the principal when sending internally.
'From address</div>
Dim mailboxFrom As String</div>
If ( db.Server = "" ) Then</div>
'Stamp messages as From the current user. This is required for messages in the local mail.box file to replicate back to the mail server.</div>
Call note.ReplaceItemValue( "From", session.UserName )</div>
Else</div>
If( mailboxFrom = "" ) Then</div>
Call note.ReplaceItemValue( "From", GetMessagePrincipalName( colorProfile ) )</div>
Else</div>
Call note.ReplaceItemValue( "From", mailboxFrom )</div>
End If</div>
End If</div>
'From address
Dim mailboxFrom As String
If ( db.Server = "" ) Then
'Stamp messages as From the current user. This is required for messages in the local mail.box file to replicate back to the mail server.
Call note.ReplaceItemValue( "From", session.UserName )
Else
If( mailboxFrom = "" ) Then
Call note.ReplaceItemValue( "From", GetMessagePrincipalName( colorProfile ) )
Else
Call note.ReplaceItemValue( "From", mailboxFrom )
End If
End If
'From address
Dim mailboxFrom As String
If ( db.Server = "" ) Then
'Stamp messages as From the current user. This is required for messages in the local mail.box file to replicate back to the mail server.
Call note.ReplaceItemValue( "From", session.UserName )
Else
If( mailboxFrom = "" ) Then
Call note.ReplaceItemValue( "From", GetMessagePrincipalName( colorProfile ) )
Else
Call note.ReplaceItemValue( "From", mailboxFrom )
End If
End If
'From address
Dim mailboxFrom As String
If ( db.Server = "" ) Then
'Stamp messages as From the current user. This is required for messages in the local mail.box file to replicate back to the mail server.
Call note.ReplaceItemValue( "From", session.UserName )
Else
If( mailboxFrom = "" ) Then
Call note.ReplaceItemValue( "From", GetMessagePrincipalName( colorProfile ) )
Else
Call note.ReplaceItemValue( "From", mailboxFrom )
End If
End If