Lotusscript: sending encrypted email to non notes user

Hi

To send an encrypted email to a non-Notes user I have successfully sat Domino Certificate Authority

op and running, created an internet certificate for Outlook-user and cross certified the Outlook-users certificate in my address book.

If I compose an email to the Outlook-user and mark the ‘Encrypt’ from delivery options, then Outlook-user get an encrypted mail.

In this way everything works fine, but…

Using LotusScript will raise an error.

The script is very generic like this:

Sub SendEncryptEmail

Dim Maildb As NotesDatabase

Dim Maildoc As notesdocument       

Dim rtitem As NotesRichTextItem

Set Maildb = New NotesDatabase("Server/Org", "TestMail.nsf")

Set MailDoc = New NotesDocument(Maildb)     

MailDoc.Form = "Memo" 

MailDoc.SendTo = "OutlookUser@hotmail.com"                                                                                 

MailDoc.From = "NotesUser@Notes.com"

MailDoc.subject = "Subject of encrypted body!"

Set rtitem = New NotesRichTextItem (MailDoc, "Body" ) 

Call rtitem.AppendText( "This text will be encrypted using Outlook-users public key in the Outlook-users document from Domino directory!")

MailDoc.EncryptOnSend = True

Call MailDoc.send( False) 

Call MailDoc.save(True,False)	

End Sub

This script will generate this error:

Mail encryption failed for this recipient because:

This recipient’s Notes Certificate could not be found in the directory. …

What am I missing here?

I can send manually encrypted emails (and Notes understand that this an internet mail user), but not with LotusScript.

How do I tell Notes in script, this is an internet mail user?

I do appreciate any input.

Thankz