I use the following code to push javascript client-side:
Dim strlang As String = "<script language='javascript'>"
Dim strOA As String = "var outlookApp = new ActiveXObject('Outlook.Application');"
Dim strNS As String = "var nameSpace = outlookApp.getNameSpace('MAPI');"
Dim strMF As String = "mailFolder = nameSpace.getDefaultFolder(6);"
Dim strMI As String = "var mailItem = mailFolder.Items.add('IPM.Note.FormA');"
Dim strSub As String = "mailItem.Subject= 'NCMR# " & NCMRDropDownList.SelectedValue & "';"
Dim strTo As String = "mailItem.To = '" & SupplierEmail.Text & "';"
'Dim strTo As String = "mailItem.To = 'Michael.Casciano@ZF-Lenksysteme.com';"
Dim strA1 As ...
Go to the complete details ...