LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP send mail message

SMTP send mail message is giving 'unkown mime version' error(error code 16500). The same mail server works when sending by Netscape mail.Any help greatly appreciated.
0 Kudos
Message 1 of 5
(3,453 Views)


Not sure of the problem here... but, you can meanwhile try the SMTP library at OpenG.org to rule out any LabVIEW-specific issue:

http://openg.org/tiki/tiki-index.php?page=OpenG%20Internet%20Connectivity%20Tools

If the above link doesn't work, go to OpenG.org and search for SMTP.

If the OpenG.org library works, you may want to report this as a bug to NI.

Regards,

Khalid


0 Kudos
Message 2 of 5
(3,453 Views)
Thanks for the response, Khalid. I did not try smtp library but I tried pop library as that was also one of my needs. Strangely, there was no error but the message array in the pop client is empty although the server reply as below looks okay...

+OK POP3 Server ready <1080336825.915@tapuz.safe-mail.net>
+OK 5 messages ready for sbelur in inbox
LIST
+OK 5 messages (6190 octets)
1 1237
2 1243
3 1241
4 1235
5 1234
----------
Do I need to change some parameter for this?

Thanks again.

Sheela
0 Kudos
Message 3 of 5
(3,453 Views)


Hi,

There seem to be a bug in the OGIC_POP.llb\OGIC_POP_ListMessages.vi.

Or at least it needs customization to process the response from each mail server. If you open the diagram for this VI, you'll see that it is using the "+OK\s" regular expression to reach the end of the string before the msg-number, msg-size list. In your case, this string is "+OK 5 messages (6190 octets)"

You need to modify the diagram to skip this whole string. One easy way would be to use just "+OK" with the first Match Pattern fuinction and then use an "\r\n" and pass this to the true-case.

I am attaching a screenshot of this. And I have tested this to work fine -- I get the messages in the array.

Hope this helps,

Khalid


0 Kudos
Message 4 of 5
(3,453 Views)
Thank you very much. In the meanwhile I contacted Kevin Valentine who is the author of these libraries and he fixed the problem and said he would be putting the new verions of both POP and SMTP out on the OGIC Web site soon.

Thanks again.
0 Kudos
Message 5 of 5
(3,453 Views)