LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ogic smtp library example

 
 Hi folks,
 
 those days I'm trying to "play" with OGIC SMTP library just to send an e-mail. The smtp server I'd like to use is Yahoo, since I know it uses RFC 2554 authentication. By reading some posts in this forum I'm not pretty sure if OGIC SMTP supports this protocol authentication or not, I also read a post by Rolf Rolf Kalbermatter:
 
"I posted a library to replace the relevant functions of the LabVIEW SMTP
library some time ago here on Developer Exchange.

Checkout

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000084CB0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
"
but I'm not able to find the library Rolf mention above.
 
With all this I tried to programm a little vi to send an e-mail, with OGIC SMTP library, but I think there is a problem when I try to authenticate Yahoo server, please see attached image file, to see the messages.
 
Any feedback will be welcome.
 
Jose

 
0 Kudos
Message 1 of 29
(12,292 Views)
I know that error well. The reason for that error is that there's a couple of functions in that library that don't meet the full email spec. Specifically, it's creating lines that are linefeed only. The email spec says that lines must end with a carriage return/linefeed. Most servers will not accept an email that's formatted this way, and they'll send the response you got. If you go to the web site that mentioned in the server's response you will get an explanation. I ran into that problem when I used the library and modified the VIs to make it work. I had also found a small bug in one of the lower level functions when it was dealing with attachments. I don't think that library is being supported anymore, as it doesn't seem to be distributed as an OpenG library. If you can't get an update I can upload my modified version.
Message 2 of 29
(12,272 Views)

hi smercurio,

 thanks a lot for your feedback, I'd appreciate you could send me your modified version of the ogic smtp library, either you can attached it here or send it to me by e-mail, you can reach me at , jgarciallamas@yahoo.es

Thanks for your support.

Jose.

0 Kudos
Message 3 of 29
(12,263 Views)
Here you go. You may need to update your wiring as I modified the connector pane on the main VI.

This is in LabVIEW 8.2.
Message 4 of 29
(12,256 Views)

 

 Hi smercurio,

 sorry to bother you with this but I'm working with LV 7.1, so could you compile it for this version, please?

 Thanks a lot.

Kind regards.

Jose.

0 Kudos
Message 5 of 29
(12,253 Views)
Unfortunately, to go back to 7.1 requires LabVIEW 8.0, and I don't have that installed on my machine anymore. I can only go back to 8.0, and I've attached that version. I know you can't use it, but there are others on this forum who still have 8.0, and I would ask if one of them would be so kind as to resave this as 7.1.
Message 6 of 29
(12,247 Views)

 

 Don't worry smercurio, thanks for your support and time, I hope someone could help me with this.

I'd appreciate someone who had read previous posts could recompile last attached files, by smercurio, to LV v7.1. Please, again I'd appreciate your support.

Thanks for all of you.

 

Jose

0 Kudos
Message 7 of 29
(12,243 Views)
You lucked out in that I still had 7.1 on my computer so I downloaded the library and just made the few minor changes that I had done to make the library work with the no bare linefeed spec. Try the attached version to see if it works for you.
Message 8 of 29
(12,218 Views)

Hi smercurio,

 

 Thanks a lot for attaching the file, v7.1, I was trying to see where were the errors by checking the web, the server output mentions, but I was not able to find which vi was the responsable of the problem. More or less I supposed the problem was in "Send Data.vi" and I checked that you used Match pattern vi just to substituying \n by \r\n but I don't know if you have done other changes related to this characters.

 I know your last version have other changes related to the attachaments.

cheers,

 

Jose.

0 Kudos
Message 9 of 29
(12,207 Views)
I placed comments in the code for the VIs that I modified. You can check based on the file's timestamp to see which ones I modified. I hope I remembered all the changes I made. Let me know how it works out.
Message 10 of 29
(12,193 Views)