LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send email on labview using the Gmail Server (TLS)

hi. i am trying to send an email using internet toolkit vis. but i have this problem : LabVIEW:  (Hex 0x4076) 502 Command not implemented.

please help me to resolve this problem.. thanks a very much..


0 Kudos
Message 91 of 114
(4,236 Views)

Paria,

 

Customers have run into this issue before, and the issue was in the security settings of their firewall. You can refer the following forum where the customer had to add Labview to McAfee list of allowed executables.

http://forums.ni.com/t5/LabVIEW/smtp/td-p/309675?requireLogin=False

 

Regards,

Danny F

Danny Funk -- Senior Group Manager -- Software R&D -- NI
0 Kudos
Message 92 of 114
(4,209 Views)

Hi,

 

I tried to use this VI, but it doesn't work. There is problem with connection to server (Error 1172). Ports are not bloked, and I made full access for VI file and Labview. Any ideas ?

 

rafaal.

0 Kudos
Message 93 of 114
(4,063 Views)

Also I noticed that when I open my vi file, there is an Error - problems with sending commands to the program.

 

Btw. I use Labview 2010 SP1 & win7.

0 Kudos
Message 94 of 114
(4,055 Views)

@paria wrote:

hi. i am trying to send an email using internet toolkit vis. but i have this problem : LabVIEW:  (Hex 0x4076) 502 Command not implemented.

please help me to resolve this problem.. thanks a very much..



I just had this issue when our IT dept. decided to implement some anti-spam software.  Our firewall blocked all e-mails from my computer.  There was no way around it.  Eriquito provided a VI in the early postings of this thread (on the first page) that works perfectly.  Thanks Eriquito!

 

For g-mail use smtp.gmail.com for the server and port 587.  You will have to set up a g-mail account, but at least you won't have to worry about your firewall.

 

Reese

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 95 of 114
(4,052 Views)

This vi throwing error:

 

Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send, (System.Reflection.TargetInvocationException: Tatget invocation exception.
Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
Inner Exception: System.FormatException:  An invalid character was found in the mail header.).

 

Any ideas ?

0 Kudos
Message 96 of 114
(3,984 Views)

Did you check your mail header?  There is a character that the Vi is not liking.  Post your VI or a screenshot.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 97 of 114
(3,980 Views)

I didn't check, becouse my Vi hasn't got any headers

Vi in attachment

0 Kudos
Message 98 of 114
(3,974 Views)

Is it possible you're using "funny" characters in your password? This might happen if you're on a non-English operating system.

What addresses are you using for the sender address and the recipient?

Did you copy and paste the addresses from somewhere? Perhaps the source has non-printable, illegal characters.

0 Kudos
Message 99 of 114
(3,968 Views)

I don't know.  The only error I got was related to an empty address field.  Are the fields filled with valid e-mail addresses?  Try the VI attached.  It's what you posted I just took the liberty of cleaning up your error handling a bit.

I tested it out and it works for me.  Make sure your fields are filled properly.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Message 100 of 114
(3,968 Views)