LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send an email from a VI

Solved!
Go to solution

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

0 Kudos
Message 1 of 50
(10,813 Views)
hope this helps:
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 50
(10,804 Views)

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

0 Kudos
Message 3 of 50
(10,798 Views)
i shall look into it
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 4 of 50
(10,796 Views)

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

0 Kudos
Message 5 of 50
(10,751 Views)

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

0 Kudos
Message 6 of 50
(10,747 Views)

Hi mathan

 

 

     thanks for ur reply. Please tell me, in which module .NET framework is there.  

 

     Is it in LabviewCore Module ??

 

Thanks

prashiit

0 Kudos
Message 7 of 50
(10,742 Views)
No you have to download it from microsoft msdn website
0 Kudos
Message 8 of 50
(10,739 Views)

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.

Message 9 of 50
(10,721 Views)

Todd expalins it here

 

 

Quoted

 


If you receive Error -1172 with this example, try logging into the Gmail account with your browser.  This error can occur with Gmail accounts that have been inactive for a period of time.  You must log in with a browser and verify CAPTCHA text to reactivate the account.

 

Message Edited by muks on 09-16-2009 02:36 PM
0 Kudos
Message 10 of 50
(10,712 Views)