07-01-2009 03:54 PM
I am getting an -7 error when trying to use the InetSendMail. I originally was getting a -4 error that I was able to fix by unblocking my program in McAfee Virusscan program.
I wanted to try to use the .NET 2.0 that was talked about in this discussion thread, but I am unable to filnd the System.Net.Mail.SmtpClient class. I am using LabWindows/CVI 9/0. Is the *.fp file located at c:\program files\national instruments\cvi90\samples\dotnet\systemwrapper.fp?
"InetSendMail does not support TLS (or SSL). If you do not mind using .NET 2.0, then the System.Net.Mail.SmtpClient class in the System assembly lets you do this - this class is new to .NET 2.0. You can call .NET assemblies from CVI by creating a wrapper for the assembly using Tools >> Create .NET Controller - it will take a while to generate and compile the wrappers for larger assemblies. If you cannot or do not want to use .NET then you may be able to find open-source code or C libraries that do TLS."
07-02-2009 08:41 AM
Hi
Please try the shipped example sendmail.cws (C:\Dokumente und Einstellungen\All Users\Dokumente\National Instruments\CVI90\samples\internet\sendmail)
The System.Net.Mail.SmtpClient class is part of the system assembly like shown in screenshot.
07-06-2009 08:44 AM
Paul,
It sounds like you are looking for the .fp File however this .fp has to be created before you can find it on your system. To create a .fp file for your system.net class go to Tools >> Create .net Controlle. This should populate a dialogbox. Browse through the list until you find the System.Net ClassAt the bottom select the name of the .fp file you wish as well as the path you want to save this file to and then click ok. Once this is done you should have the .FP file in the directory you specified and you should be able to use it directly.
Hope this helps
07-06-2009 09:57 AM