LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smtp email send file

Hello,
I'm trying to send an email with an attachment using the smtp email send file under LV 7.1
When I run the vi the following message appears: " 500 syntax error , command unrecognized. For example , the command line might be too long".
The same if I use the email with data.vi example.
Thank you for your help.
Andrés
0 Kudos
Message 1 of 5
(3,370 Views)
Hi Andres,
 
this is a link of a NI document that it can explain what causes your error:
 
 
If you don't solve the issue with the document information you could attached your VI to reproduce the problem.
Regards
 
MarcoC
NI Italy/Spain
0 Kudos
Message 2 of 5
(3,348 Views)

Hi Marco,

I've tried your suggestion and the message on the reply string is confused for me: " 220 ctsmtpout.frontal.corre o ESMTP Service ( 7.2.056.6) ready ".

I attach the vi that I'm trying to run. It is the one on the LV7.1/examples/comm/smtpex.llb        EMail with Data.vi

Thank you for your help.

Best regards

Andrés

0 Kudos
Message 3 of 5
(3,334 Views)
Hi Andrés,
 
I've used your code and all has worked fine, I think that the only thing we have different is the "Mail Server", so I think that your problem is due to it. What kind of a "Mail Server" you are using?
Try to use a Mail VI without attachments ("SMTP email Send message.vi"), does it work fine with your "mail server"?
 
Regards.
 
MarcoC
0 Kudos
Message 4 of 5
(3,319 Views)

Hi Marco,

I tried also the vi that you mention and it is the same.

I think you are right. The problem must come from my smtp server. It needs authentication and I've seen that smtp vi's don't support that kind of servers.

But I don't know how to solve that because every smtp server should run under authentication , in other case you are wide open to the world.

I would be grateful if you could give me a suggestion ( may be a solution ).

Thanks a lot for your answer.

Best regards

Andrés

 

0 Kudos
Message 5 of 5
(3,277 Views)