10-28-2014 10:40 AM
hello all
i have used the example above (SEND_EMAIL.vi) for some time and it worked fine.
now i got error 1172:
Error calling method System.Net.Mail.SmtpClient.Send, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at) <append><b>System.Net.Mail.SmtpException</b> in SEND_EMAIL.vi
any idea what it could be?
at opening the original again, a warning appeared:
- Expected Assembly "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", but found "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089."
on the context menu over a property the constructor item opens the 'select .net constructor' dialog. there system(2.0.0.0) is the assembly. should it be the 4.0.0.0? but where to find it?
thanks for any help
10-28-2014 12:49 PM
You could write code to send an email using Microsoft CDO for Windows 200 ActiveX class. I've done this with older versions of labview and company's own SMTP server.
The code is sloppy but it works for my purposrs.