Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
Author | Forum: PowerTCP Mail for ActiveX Topic: Question - Preview Msg and then retrieve? |
scase From: Rochester, NY USA Posts: 5 Member Since: 12/08/03 |
posted December 8, 2003 7:48 AM Here is what I am trying to do: 1) Login to POP Server 2) Preview Msgs 3) If From Email Address = SOMETHING Then Download that message only The problem I am having is that I cannot seem to grab the specific email I want. These emails are not displayed to a user or anything. It is a utility I am writing to process data sent to us via email, but depending on where the email comes from it has to be processed differently. Hence the getting of the email headers first. Can anyone shed some light on this? Thanks, Shan |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 8, 2003 8:54 AM Why can't you find the email? Maybe you aren't looking for the right thing? Please provide more details as to what you are looking for. Better yet, have you taken a look at the sample apps? Most times people can figure out what they need to do by looking at one or more of the samples. |
scase From: Rochester, NY USA Posts: 5 Member Since: 12/08/03 |
posted December 8, 2003 9:25 AM After browsing the email headers I should be able to grab a specific email ( Msg.Attribute(msgNumber) ) by logging into the POP Server and issueing the command: Pop1.Get iMessageNumber I pass Msg.Attribute(msgNumber) to a function that logs back in and tries to grab just that email. It does not seem to be working. This is not working at the moment. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 8, 2003 9:39 AM Please define "does not seem to be working". What is the exact error message that you get? Also, above I asked if the sample apps work? What happens if you try to get the message like we do in the sample? |
scase From: Rochester, NY USA Posts: 5 Member Since: 12/08/03 |
posted December 8, 2003 9:54 AM I do not get an error, but it is not downloading the attachment from the message. To grab a specific email does the range have to be in quotes? I think that is where my problem is ... the variable I am passing has the value 1. So I think the Pop1.Get thinks I am asking for msgSize? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 8, 2003 10:13 AM What happened when you tried the sample? Was the sample able to retrieve the attachment? |
scase From: Rochester, NY USA Posts: 5 Member Since: 12/08/03 |
posted December 8, 2003 10:18 AM Your sample apps do not have this. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 8, 2003 10:22 AM Please take a look at the Pop client sample. It retrieves the headers first and displays the info in a listview where you can select the message you want to download. I realize it's not EXACTLY what you are trying to do, but it covers most of it. |
scase From: Rochester, NY USA Posts: 5 Member Since: 12/08/03 |
posted December 8, 2003 11:17 AM I have looked at the Sample POP Client, but I am having a hard time understanding it. I only have the 30-Day Trial of your Email Tool, but I have to get this to work before I am given the ok to purchase it. I will try stepping through the example program again. Thanks. |
mdwait From: North Richland Hills, TX USA Posts: 17 Member Since: 09/30/02 |
posted January 20, 2004 8:54 AM Just a third party.... We do retrieve emails from ACCOUNT=XXXX and where the TO:=ZZZZZZZ or FROM:=YYYYYYY - whatever - and works fine. However, our sequence is to get the emails - then save off what we want. We then turn around and delete the ones that we actually used. So - I think we end up going to the server twice. We basically cloned the examples that DartMail provided - and then added our own checking for specific email senders and/or receiving. Works pretty well! |
Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
![]() |