LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ogic smtp library example

Message in MIME format

--=====================_3327445822==_
Content-Type: text/plain
 charset="us-ascii"
 format=flowed
Content-Transfer-Encoding: 8bit

DATASTART
TML,RLV,T01,2443744801,20090610,105315,0194,-9999,-9999,-9999,-9999,-9999,-9999,00001000,DE10
KTN,RLV,000,2443744801,20090610,105207,0209,-9999,-9999,-9999,-9999,-9999,-9999,00001000,AB38
TML,RLV,T09,2443744801,20090610,102615,0540,-9999,-9999,-9999,-9999,-9999,-9999,00001000,9733
KLP,RLV,L01,2443744801,20090610,100715,0094,-9999,-9999,-9999,-9999,-9999,-9999,00001000,7ED4
TML,RLV,T04,2443744801,20090610,100114,0276,-9999,-9999,-9999,-9999,-9999,-9999,00001000,D498
KLP,RLV,L10,2443744801,20090610,100114,0100,-9999,-9999,-9999,-9999,-9999,-9999,00001000,AC90
KLP,RLV,L09,2443744801,20090610,100114,0167,-9999,-9999,-9999,-9999,-9999,-9999,00001000,FA67
RAB,RLV,RB10,2443744801,20090610,100038,0283,-9999,-9999,-9999,-9999,-9999,-9999,00001000,16E5
TML,RLV,T08,2443744801,20090610,100036,0307,-9999,-9999,-9999,-9999,-9999,-9999,00001000,BDA1
TML,RLV,T07,2443744801,20090610,100032,0385,-9999,-9999,-9999,-9999,-9999,-9999,00001000,6CBA
TML,RLV,T06,2443744801,20090610,100031,0748,-9999,-9999,-9999,-9999,-9999,-9999,00001000,E425
RAB,RLV,RB08,2443744801,20090610,100030,0235,-9999,-9999,-9999,-9999,-9999,-9999,00001000,0DA5
KLP,RLV,L04,2443744801,20090610,100017,0142,-9999,-9999,-9999,-9999,-9999,-9999,00001000,BFBD
TML,RLV,T03,2443744801,20090610,100016,0315,-9999,-9999,-9999,-9999,-9999,-9999,00001000,4946
KLP,RLV,L02,2443744801,20090610,100015,0311,-9999,-9999,-9999,-9999,-9999,-9999,00001000,027E
KLP,RLV,L03,2443744801,20090610,100015,0303,-9999,-9999,-9999,-9999,-9999,-9999,00001000,2042
RAB,RLV,RB09,2443744801,20090610,100014,0235,-9999,-9999,-9999,-9999,-9999,-9999,00001000,A531
RAB,RLV,RB07,2443744801,20090610,100014,0373,-9999,-9999,-9999,-9999,-9999,-9999,00001000,78B5
DATAEND


--=====================_3327445822==_--

 

Hi all above is an exaple data i able to send out using the example vi..but i need to remove all other character and send out this.

 

DATASTART
TML,RLV,T01,2443744801,20090610,105315,0194,-9999,-9999,-9999,-9999,-9999,-9999,00001000,DE10
KTN,RLV,000,2443744801,20090610,105207,0209,-9999,-9999,-9999,-9999,-9999,-9999,00001000,AB38
TML,RLV,T09,2443744801,20090610,102615,0540,-9999,-9999,-9999,-9999,-9999,-9999,00001000,9733
KLP,RLV,L01,2443744801,20090610,100715,0094,-9999,-9999,-9999,-9999,-9999,-9999,00001000,7ED4
TML,RLV,T04,2443744801,20090610,100114,0276,-9999,-9999,-9999,-9999,-9999,-9999,00001000,D498
KLP,RLV,L10,2443744801,20090610,100114,0100,-9999,-9999,-9999,-9999,-9999,-9999,00001000,AC90
KLP,RLV,L09,2443744801,20090610,100114,0167,-9999,-9999,-9999,-9999,-9999,-9999,00001000,FA67
RAB,RLV,RB10,2443744801,20090610,100038,0283,-9999,-9999,-9999,-9999,-9999,-9999,00001000,16E5
TML,RLV,T08,2443744801,20090610,100036,0307,-9999,-9999,-9999,-9999,-9999,-9999,00001000,BDA1
TML,RLV,T07,2443744801,20090610,100032,0385,-9999,-9999,-9999,-9999,-9999,-9999,00001000,6CBA
TML,RLV,T06,2443744801,20090610,100031,0748,-9999,-9999,-9999,-9999,-9999,-9999,00001000,E425
RAB,RLV,RB08,2443744801,20090610,100030,0235,-9999,-9999,-9999,-9999,-9999,-9999,00001000,0DA5
KLP,RLV,L04,2443744801,20090610,100017,0142,-9999,-9999,-9999,-9999,-9999,-9999,00001000,BFBD
TML,RLV,T03,2443744801,20090610,100016,0315,-9999,-9999,-9999,-9999,-9999,-9999,00001000,4946
KLP,RLV,L02,2443744801,20090610,100015,0311,-9999,-9999,-9999,-9999,-9999,-9999,00001000,027E
KLP,RLV,L03,2443744801,20090610,100015,0303,-9999,-9999,-9999,-9999,-9999,-9999,00001000,2042
RAB,RLV,RB09,2443744801,20090610,100014,0235,-9999,-9999,-9999,-9999,-9999,-9999,00001000,A531
RAB,RLV,RB07,2443744801,20090610,100014,0373,-9999,-9999,-9999,-9999,-9999,-9999,00001000,78B5
DATAEND

 

if i edit somethg in the vi.it shows error num 56.if i put back the error didnt occurs..need help urgent

 

 

0 Kudos
Message 21 of 29
(2,938 Views)
What are you talking about? What changes? What example VI? Is this related to your other thread?
0 Kudos
Message 22 of 29
(2,924 Views)

Im sorry..currently i able to fix the problem but..when i test this function i have missed

 

> 1) Missing From address
> 2) Missing Sent Date/Time

 

i have attached the pic of outlook whr i have problem

 

how to fix tis? please help urgent thnk u

0 Kudos
Message 23 of 29
(2,909 Views)

You'll have to post some code so we can see what you are doing.

 

I would guess that you didn't wire up a string into From address input of the VI.    I don't know about the date/time part.  What happened between Today and Last Week?  You seem to have very similar messages last week that have that  information.

 

 

PS.  You seem to be missing some of your keys when you type your message.  Have your fingers press a little harder so all the keys register when you type your message using full English words.

0 Kudos
Message 24 of 29
(2,902 Views)

SERVER: 220 bahamut.mschosting.com
CLIENT:   HELO localhost
SERVER:  250 bahamut.mschosting.com Hello [60.48.236.157]
CLIENT:   auth login
SERVER:  334 VXNlcm5hbWU6
SERVER:  334 UGFzc3dvcmQ6
SERVER:  235 Authentication successful
CLIENT:   MAIL FROM:<jeyanthi@tck.com.my>
SERVER:  250 OK <jeyanthi@tck.com.my> Sender ok
CLIENT:   RCPT TO:<jeyanthi12@yahoo.com>
SERVER:  250 OK <jeyanthi12@yahoo.com> Recipient ok
CLIENT:   RCPT TO:<jeyanthi@tck.com.my>
SERVER:  250 OK <jeyanthi@tck.com.my> Recipient ok
CLIENT:   DATA
SERVER:  354 Start mail input; end with <CRLF>.<CRLF>
CLIENT:   QUIT
SERVER:  250 OK

 

This is the server responce i get when i test this module..but it still shows me the same mail as i attached before

 

It still missing the from id in the mail..can anyone detect why this problem occurs.. i try to attached the vi for you but is it able for detect the problem from the server responce..plz help..urgent

0 Kudos
Message 25 of 29
(2,897 Views)
0 Kudos
Message 26 of 29
(2,897 Views)

Have you tried to see if the Send E-mail VI is working properly in a much simpler VI?

 

The information seems to be coming from a database, can you verify that your database query is working properly?  Try putting some indicators on those wires to see what data they actually contain.

 

As some programming tips, you have several places where you use the Value property node.  Using a local variable in those cases would be a bit more efficient.  There are a few terminals of controls that you do not use at all and could replace at least one instance of a value property node.

 

You also have a large structure where you have 10 True/False case structures embedded one inside another.  Instead of that, wire your string directly to the case structure selector and make 10 cases where each one represents one of the strings you are comparing, and one is the default case (the inner most False string).  This will eliminate 9 of your case structures and all 10 of your boolean comparisons.

Message Edited by Ravens Fan on 01-15-2010 11:44 PM
Message 27 of 29
(2,888 Views)

Hi Ravens,

 

Thanks for the guide..but i have find a different solution and it is workable now

 

i modifide in the send data.vi and it able to show me the sender name.

 

 

0 Kudos
Message 28 of 29
(2,879 Views)

Here i attached the modification i made. Solution 1 is changes i made at OGIC_SMTP_SendData.vi

Solution2 picture is changes i made for the OGIC_SMTP_SendCommand.vi

Download All
0 Kudos
Message 29 of 29
(2,878 Views)