09-12-2009 11:37 AM
Hello..
I want to know how to send an email from VI. I am using Labview 8.6 . I tried some examples also. But when I run those VIs, I getting errror. It is smtp server error. I dont have any idea about how to change smtp server settings. Can any body tell step by step procedure to accomplish this task..
Further, I need send an attachment with this email...
Please help me
Thanks
Prashanth
Solved! Go to Solution.
09-12-2009 11:50 AM
09-12-2009 12:12 PM
Hello harold..
thanks for sending VI. I tried it, but I am getting following error
Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send of ObjectId handle: 0xCD21184 for obj 0x212E63[System.Net.Mail.SmtpClient] in domain [LabVIEW Domain for Run] and thread 280, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception: System.Net.WebException: Unable to connect to the remote server
Inner Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
) in GmailLV86.vi
How can I solve this problem..
Please let me know.
Thanks
Prashanth
09-12-2009 12:14 PM
09-15-2009 11:30 PM
Hello Harold
You have sent Gmailv86.vi.
But I am getting 1172 error when I am using it... Is there any server settings to change..?
Thanks
Prashh
09-15-2009 11:43 PM
prashiit wrote:
But I am getting 1172 error when I am using it... Is there any server settings to change..?
Error 1172 generally meant for .Net exception. Have you installed .NET framework in your PC?
Mathan
09-15-2009 11:53 PM
Hi mathan
thanks for ur reply. Please tell me, in which module .NET framework is there.
Is it in LabviewCore Module ??
Thanks
prashiit
09-16-2009 12:04 AM
09-16-2009 03:39 AM
Hi prashiit,
LabVIEW has a VI called 'SMTP Email Send File.vi' which can send a message and attachment to the place you specify. Hope it helps.
09-16-2009 04:05 AM - edited 09-16-2009 04:06 AM
Quoted