LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP send error

I tried to send email to
hon-yin.kan@hk.bureauveritas.com

using SMTP Send File vi
and then I got an error 2100 saying

"500 Syntax error, command "MIME-Version: 1.0" unrecognized"

How can I send email to address like
hon-yin.kan@hk.bureauveritas.com?

Thanks.
0 Kudos
Message 1 of 10
(4,750 Views)
Hello,

As long as you have access to a valid SMTP email server and you connect the VI inputs correctly, you should be able to use this VI. If you are not sending a file, however, I would recommend using the "SMTP Email Send Message.vi" rather than the file-sending VI you referenced.

I tested this VI and it worked correctly. The most critical input to wire correctly is the "mail server" input. (Your SMTP mail server name may look something like mail.company.com, or it may be an IP address. Contact your IT personnel for more information).

I hope this helps! Have a great week!

Sincerly,

Liz Fausak
0 Kudos
Message 2 of 10
(4,751 Views)
Hi. I also encountered the similar problems when using SMTP VI. I tried the E-mail notification.vi found in the examples vi but still unsuccessful. I've followed the step by step method in http://digital.ni.com/public.nsf/allkb/DBD696A5152AC29986256FF0001FF622 , and here's what i had got.
550 5.7.1 <abc@mailcity.com>... Relaying denied. IP name lookup failed [203.106.64.124]
250 smtp.google.com Hello [203.106.64.124], pleased to meet you
250 2.1.0 <abc@gmail.com>... Sender ok
550 5.7.1 <abc@mailcity.com>... Relaying denied. IP name lookup failed [203.106.64.124]
503 5.0.0 Need RCPT (recipient)
500 5.5.1 Command unrecognized: "MIME-Version: 1.0"
500 5.5.1 Command unrecognized: "Content-Type: text/plain; charset="us-ascii""
 
Note:The e-mail address has been changed in this context. I entered smtp.google.com for mail server, & recipients in abc@gmail.com format. So how can i send mail using LabView?
 
Thanks a lot.
0 Kudos
Message 3 of 10
(4,531 Views)
I think your issue is the connection to the SMTP server.  First off, the smtp server for gmail (according to gmail help) is smtp.gmail.com, not smtp.google.com.  Secondly, the port for the gmail smtp server is 465, while the SMTP vi's by default open port 25.  Theoretically, you could edit the VI that opens a TCP port, but you would have to resave most of the smtp hierarchy to avoid changing the version saved in vi.lib.  Finally and most importantly, the gmail smtp server requires SSL encryption, which I have no idea how to start implementing. 

So how do you send mail in LabVIEW? 

I have had luck communicating with the internal servers set up by our IT dept because they apparently have no authenication or encryption methods to navigate.  In the non-corporate setting, I have also had luck using a free SMTP server.  When using this server, simply type "localhost" for the SMTP server.  Finally, you could take a look at the ActiveX option this post explores.

Hope this helps.
Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 4 of 10
(4,509 Views)
Excuse me,
 
How did you used the Free SMTP Server? I configured Outlook Express for Gmail, and when i try to send email from Labview i type localhost on the smtpserver but it arises an unknow error..... I dont know if i am using this program correctly or if i am missing something important, please help me.
 
Best regards
0 Kudos
Message 5 of 10
(4,211 Views)

Hello there

What are the steps to succesfully send an email with Labview?? I try the OpengG VI's because native labview VI's are obsolete ( they dont ask user name and password).

 

I hear about Free SMTP SErver, how does it work? Can i have a Gmail account opened in Outlook for example and send an email from it with SMTP server( avoiding SSL)?

 

THank you very much

0 Kudos
Message 6 of 10
(4,191 Views)
Hi Isaac84,
 
There are two main articles that you can refer to;
 
It seems that these VIs do not support encryption, but you can have a look at some POP Mail VIs in NI Developer Zone.
 
Hopefully this helps!!
Aashish M
CEO
TransferFi
www.transferfi.com
0 Kudos
Message 7 of 10
(4,182 Views)
Duplicate discussion. Isaac84, please keep the discussion in one location.
0 Kudos
Message 8 of 10
(4,162 Views)
I know that the topic is the same, but i was asking a diferent question: How can i use Free SMTP server to sen email?( a forum user bring that up, i tought it was interesting), so is not exactly duplicated.
0 Kudos
Message 9 of 10
(4,156 Views)
It has been a long time since I worked with the free SMTP server, but it doesn't interact with or require any accounts with traditional email vendors.  The free SMTP server is just a small program that will forward your emails into the vast internet.  To use it with the LabVIEW VI's, just use "localhost" for the url of the SMTP server and enter the email addresses of your intended recipients.  In the from field, enter the email address you would like any replies to be sent to.  Those replies will go through the traditional email channels provided by your email account provider.  It is possible that recipients could be blocking emails from the free SMTP server because it isn't in some trusted list of servers, but I didn't have any trouble with it.

Cheers,
Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 10 of 10
(4,153 Views)