LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending SMTP email with server that requires authentication

We are using labview 7.1 to send email, but are running into a
road block. Our smtp server requires username and password
authentication. We do want to be good internet citizens by
refraining from seting up an SMTP server that does not forward
just anyone's SPAM messages to your mailbox.

So how do we do this?


Thanks...
0 Kudos
Message 1 of 18
(6,830 Views)
BeamGuy wrote:

> We are using labview 7.1 to send email, but are running into a
> road block. Our smtp server requires username and password
> authentication. We do want to be good internet citizens by
> refraining from seting up an SMTP server that does not forward
> just anyone's SPAM messages to your mailbox.

Search here on developer Exchange for another thread where I posted a VI
library to do simple AUTH LOGIN.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000084CB0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&UPostedFromTimeSearchArg_0=25&UPostedFromTimeSearchArg_1=2&UPostedFromTimeSearchArg_2=2004&UPostedFromTimeSearchArg_S=4&UPostedToTimeSearchArg_0=23&UPostedToTimeSearchArg_1=8&UPostedToTimeSearchArg_2=2004&UPostedTo
TimeSearchArg_S=4&USEARCHCONTEXT_TIER_0=2&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=email+Rolf&USEARCHCONTEXT_QUESTION_S=0

Be aware that AUTH LOGIN is not using any encription and therefore its
use is not very secure. Any "man in the middle" could read the Base64
encoded username and password and then use it themselves. AUTH CRAM-MD5
would be considered fairly save as it uses real encryption with
challange key, but does require the MD5 algorithme. Would be possible to
do especially if you would consider buying

http://www.jyestudio.com/visecurity/cryptg.shtml.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 18
(6,828 Views)

Dear Rolfk,

I am currently needing the solution for send email with requiring authentication server. I tried to open the link you provide but there is a message about changing the link already, so I can not open it. Could you provide another link so I can read the content of the topic.\

Thank you so much!

Thang Nguyen

0 Kudos
Message 3 of 18
(6,146 Views)

Hello, I'm also interestet for the solution/right link Smiley Wink

0 Kudos
Message 4 of 18
(5,183 Views)

Here is an example of logging into a GMail account using .NET functions, any help?

_____________________________
- Cheers, Ed
Message 5 of 18
(5,175 Views)

Hi, if I want to login with authentication?

0 Kudos
Message 6 of 18
(5,171 Views)

I've done some further reading, and it looks like SMTP with authentication is still not supported in LabVIEW yet. However, there may be some .NET support somewhere. I will look into it and report back.

_____________________________
- Cheers, Ed
0 Kudos
Message 7 of 18
(5,164 Views)

GT123, can you clarify if by 'authentication', you mean logging into the account with username and password, or if you mean full-on TLS/SSL and encryption?

 

That gmail example shows how to use .NET constructs to log in with credentials and using alternative ports 

_____________________________
- Cheers, Ed
0 Kudos
Message 8 of 18
(5,161 Views)

@GT123 wrote:

Hi, if I want to login with authentication?


The example provided does this. That's why there's a username and password control on the front panel.

0 Kudos
Message 9 of 18
(5,153 Views)

Hello at all,

I'm asking this because of my problem with this .net Vi. I got a new account but I get this error while I want to send a email:

 

Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send, (System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
	Inner Exception: System.Net.Mail.SmtpException: Fehler beim Senden von Mail.
	Inner Exception: System.Net.WebException: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
	Inner Exception: System.Net.Sockets.SocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 10.1.8.60:25)

Possible reason(s):
LabVIEW:  A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
System.Net.Sockets.SocketException in Email_smtp_authentication.vi

 

0 Kudos
Message 10 of 18
(5,146 Views)