LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with hardcoded port number for email vis

I am trying to use the email vis in 8.2 They seem to have the port number hard coded to 25 at the sub-vi level (pw protected). Our company blocks 25 and use a different port. Is there any way to bring the port number to main vi so that it can be changed. btw, I tried to edit the vi but it will not allow me to save.
0 Kudos
Message 1 of 6
(2,896 Views)
First copy "C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Utility\SMTP\smtpeml.llb" to another location (e.g. My documents). This will ensure you're not overwriting any sytem VIs. (very important!)
 
Edit your VI and simply use "Save" instead of "Save as..."! ("Save As..." still won't let you do anything.)
 
Now load the SMTP VIs from your new custom location.
0 Kudos
Message 2 of 6
(2,886 Views)


@vpnair wrote:
I am trying to use the email vis in 8.2 They seem to have the port number hard coded to 25 at the sub-vi level (pw protected). Our company blocks 25 and use a different port. Is there any way to bring the port number to main vi so that it can be changed. btw, I tried to edit the vi but it will not allow me to save.


They are not password protected (but they are part of a library, maybe that you can't open or edit them without a FDS or PDS then??)

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 6
(2,873 Views)
Thanks. That worked. But in my opinion, NI shouldn't have hard coded the port number.
0 Kudos
Message 4 of 6
(2,863 Views)
To answer Rolf, I have PDS, which will let me edit. But it will not allow me to save a copy. It worked when I copied the library to a new location and then edited and saved it.
0 Kudos
Message 5 of 6
(2,861 Views)


@vpnair wrote:
Thanks. That worked. But in my opinion, NI shouldn't have hard coded the port number.

I think that is open for a debate 😉 This was quite alright a few years ago but today the ability to change the port number is useful. The problem here is that this would require to wire this parameter through the entire hierarchy of quite a few VIs, changing the connector pane, so maybe that was the reason nobody dared to do that change so far. An optional port connector defaulting to 25 for the lower level VI SMTP Email Open Session.vi at least should not be to difficult however.

Rolf Kalbermatter

Message Edited by rolfk on 01-17-2007 02:34 PM

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