Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
Author | Forum: PowerTCP Mail for ActiveX Topic: show message |
nader_zare From: tehran, USA Posts: 5 Member Since: 05/23/04 |
posted May 23, 2004 8:45 AM I want use PowerTCP Mail Tool for recive mail from mail server and store email to the my Database . after it: I want read message from Database and show on please help me to do this |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 23, 2004 10:11 AM Please take a look at the sample apps. The POP client and IMAP client samples both show how to get mail. If you have VB, look at DBPop which shows how to use POP to put messages into an access DB. |
nader_zare From: tehran, USA Posts: 5 Member Since: 05/23/04 |
posted May 24, 2004 5:27 AM Thanks another problem: i am saving one message with client imap sample this message have two attachment.now i want extract atachment from Stored Message. i am writing this code: msg.Load "c:\1.eml" msg.AttachmentDirectory = "" Set prts = msg.PartList For Each prt In prts If prt.File <> "" Then Dim stream As New DartStream stream.Filemode = createAlways stream.FileName = prt.File stream.Write prt.Data(msgByteArray) Set stream = Nothing End If Next prt but didnot work!? another question: Do any COMPONENT exsit for open *.eml file and view it? same as outlook express |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 24, 2004 9:52 AM To answer your first question: What doesn't work? What error message do you get? To answer your second question: We don't have a visual componenet that opens emails. That's something that you would use our components to write yourself. |
nader_zare From: tehran, USA Posts: 5 Member Since: 05/23/04 |
posted May 25, 2004 6:27 AM Thank you for Answer to my Question. The following code is in Command1_Click rutine. After First Click the size of Saved Attachment Files is zero.After second Click The Size of Saved Attachment Files is Correct. Why? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 25, 2004 7:32 AM What code are you referring to when you say "the follwing code"? |
nader_zare From: tehran, USA Posts: 5 Member Since: 05/23/04 |
posted May 30, 2004 4:16 AM :") Private Sub Command1_Click() msg.Load "c:\2.eml" msg.AttachmentDirectory = "" Set prts = msg.PartList For Each prt In prts If prt.File <> "" Then Dim stream As New DartStream stream.FileMode = createAlways stream.FileName = prt.File stream.Write prt.Data(msgByteArray) Set stream = Nothing Else stream.FileMode = createAlways stream.FileName = "3.htm" stream.Write prt.Data(msgByteArray) Set stream = Nothing End If Next prt End Sub |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 2, 2004 8:59 AM Please send "2.eml" to support@dart.com. If the message is simple enough to create, please describe it. |
Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
![]() |