LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smtp

Hi,
I use the example  E-Mail Notification.vi from LV7.1. when I run it ,it gives the message like this:502 Command not implemented,
I do not know why,
Thanks 
0 Kudos
Message 1 of 14
(5,288 Views)


@250 wrote:
Hi,
I use the example  E-Mail Notification.vi from LV7.1. when I run it ,it gives the message like this:502 Command not implemented,
I do not know why,
Thanks 


This is the SMTP server you are trying to send an email to distribute, reacting on one of the commands used in the SMTP VIs and informing you that it does not support that command. Basically this means that your SMTP server is very basic, or you are trying to use a very obscure feature in the SMPT VIs. The SMTP VIs only implement the very basic SMTP commands necessary to send emails and if your server does not understand one of those commands used it must be almost certainly a very limited server.

Go in single stepping mode through your Send Email.vi and find out at which point it returns with that error. Then you know what your server does not support and if you can work around this or if you need to upgrade your server or whatever.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 14
(5,257 Views)
thanks, but I can not find  out at which point it returns with the error in single stepping mode. Today I use another example in appendix.
The Server Address I used is mail.hualiangtech.com. the Email address(TO) is sales@hualiangtech.com.  after I run it, the Server Response is
220 ok! welcom to xinnet.com postoffice
250 ok! welome to xinnet.com postoffice
555 Syntax error
555 Syntax error
503 Bad sequence of commands
502 Command not implemented.
why, help please
thanks
 
0 Kudos
Message 3 of 14
(5,240 Views)
Try enclosing mail addresses with angle brackets, this way: <sales@hualiangtech.com>

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 14
(5,232 Views)

Thanks Paolo,

But it does not work, the Server Response is

220 ok! welcome to xinnet.com postoffice

250 ok! welcome to xinnet.com postoffice

555 Syntax error

503 Bad seqence of commands

 

Error 66 occured ar TCP Read in SendEmail_LV60.vi

Possible reason(s):

Labview: The network connection was closedd by peer

0 Kudos
Message 5 of 14
(5,229 Views)
I made a (apparently) successful test with angle brackets, although I could not send the mail to a real address (the server rejects relaying to my address).
I had to increase the TCP read timeout to 2000 ms, though. I guess that even a larger timeout would'nt hurt.
I also suggest you to print the sent commands to the Server Response box, in order to check what is answered to what command.
Please note that the SMTP server outputs a string just after establishing the connection, so, to keep all messaged in sync, you should add a TCP read before executing the for loop.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 6 of 14
(5,225 Views)

You should also make sure the smtp server you're trying to use doesn't require authentication...the send mail VI's do not support it.

 

-Jason

0 Kudos
Message 7 of 14
(5,215 Views)
Are you using that strange LabVIEW 6 e-mailing VI of unknown origin or the e-mail VIs that comes with LabVIEW 7.1?
 
Have you tried the one that ships with LabVIEW?  (communications palette).

Message Edited by altenbach on 01-13-2006 02:34 PM

0 Kudos
Message 8 of 14
(5,207 Views)
Thanks,
I have tried the VIs that comes with LabVIEW7.1( communiation pallete),but it doesn't work ,the result is:502command nor implemented.
The smtp server that I use doesn't require anthentication. WHY, help please,  
0 Kudos
Message 9 of 14
(5,176 Views)
The attached vi is a modified version of your vi. It works, in the sense that I get all ok answers from the server (the mail addresses are fake, though, so no mail is really delivered).
Please note that in "Server Response" I also list commands sent to the SMTP server.
Moreover, if I put a domain different from hualiangtech.com in the TO field, the server denies relaying, and later commands are rejected.
On the other side, if I use hualiangtech.com in the FROM field, the server requires authentication, and the session also fails.
The conclusion is that you should manage server answers unless you are really sure that all inputs are valid.

You could also make interactive tests by using any telnet program.
E.g. under Windows (2000 or XP)  type "telnet" in a command box, then type "open mail.hualiangtech.com 25". If the connection is accepted, you will see a welcome string.
Then, you can interactively type SMTP commands and get server responses. Type QUIT to terminate the connection, then another QUIT to close telnet.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 10 of 14
(5,167 Views)