LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

email example for Lv 6.1

hi
i used this example to try and send email from LV6.1.
when activating the VI the mail is sent but when puting it in a program i get this server response:
"220 exchange************* Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at  Thu, 7 Dec 2006 17:10:00 +0200
503 5.5.2 Send hello first
503 5.5.2 Send hello first
503 No sender.
500 5.3.3 Unrecognized command
500 5.3.3 Unrecognized command"
if i run the VI on it's own the main program is then able to send the mail.
what am i missing?

0 Kudos
Message 1 of 6
(3,146 Views)
What do you mean when you say "when putting it in a program"? How are you wiring it up?
0 Kudos
Message 2 of 6
(3,137 Views)
like this:
0 Kudos
Message 3 of 6
(3,123 Views)
One thing that confuses me: You say that when you run the VI standalone it works, but when you put it as a subVI it doesn't. When you have the VI open by itself are you using the same exact values for all the controls? If so, what is the server response when running the VI by itself as compared to when you're running it as a subVI? There's nothing in the VI that would preclude it from executing differently, so either it's a wiring error when you use it as a subVI, or the values you're using are different.

Also, the network address you used for the server is a private address, meaning it's in your network. Based on the response it's a Microsoft Exchange server. If so, Exchange requires authentication. In that case, the VI as is won't work since it doesn't do authentication.
0 Kudos
Message 4 of 6
(3,106 Views)

That's the thing that confused me too!
when I run the VI on it's own or when it's open I get:

220 exchange.dddddd.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at  Sun, 10 Dec 2006 09:10:46 +0200
250 exchange.dddddd.com Hello [111.111.1.20]
250 2.1.0 WSS_PC@ddddd.com....Sender OK
250 2.1.5 amose@ddddddd.com
354 Please start mail input.
250 Mail queued for delivery.

 of course I changed the domain and the real IP.

(it works also without authentication)

amose

0 Kudos
Message 5 of 6
(3,084 Views)
Honestly, I suspect a wiring error or a missing input when you use the VI as a subVI. Have the email VI open when you run your main program. Put a breakpoint right before you execute that subVI, and then step into it. See what's being passed in. Are you passing in the same exact values that you use when you use the VI by itself?
0 Kudos
Message 6 of 6
(3,056 Views)