SMTPclient() - access Sent items

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
clp1000
Posts: 14
Joined: Wed Jan 04, 2023 2:18 am

SMTPclient() - access Sent items

#1 Post by clp1000 »

Hello
We use SMTPclient() to send emails from our system
Is it possible to access the 'Sent Items' ( or any other mailbox ) without using a 3rd party email client ? What's the best/easiest way ?

Can we access diffeent Sub-Labels too ?
Thanks
Chris

skiman
Posts: 1198
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: SMTPclient() - access Sent items

#2 Post by skiman »

Hi,

Check te POP3Client class. This way you can read messages from a mailbox.
Best regards,

Chris.
www.aboservice.be

clp1000
Posts: 14
Joined: Wed Jan 04, 2023 2:18 am

Re: SMTPclient() - access Sent items

#3 Post by clp1000 »

Thanks for the reply
I use Pop3 to access new emails, but can this be pointed at the "sent" folder ? or the "deleted" folder ?
Chris

skiman
Posts: 1198
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: SMTPclient() - access Sent items

#4 Post by skiman »

Hi,

Seems as I was too fast.
It should be possible with IMAP, but I think this isn't available/possible without third party software.

It is possible with Chilkat.
https://www.example-code.com/vbscript/i ... ailbox.asp
Best regards,

Chris.
www.aboservice.be

k-insis
Posts: 125
Joined: Fri Jan 28, 2011 4:07 am

Re: SMTPclient() - access Sent items

#5 Post by k-insis »

Some options as xbase does not support such functionality per self.

1) IMAP with one of clients (ChKat will do too), mind for proper security for TLS/SSL .

2) All sent emails from application are automatically BCC to one or more internal adresses for easy access to history via Outlook, TB and such

3) On mail server a server rule is added so each sent email is automatically forwarded or copied to another account for audit trail . Mail admin should know what to do.

4) Write classes that talk to Outlook via CreateObject("Outlook.Application") and talk to prepared IMAP account (Outlook handles every aspect of security and comm)

clp1000 wrote: Mon Oct 30, 2023 3:39 am Hello
We use SMTPclient() to send emails from our system
Is it possible to access the 'Sent Items' ( or any other mailbox ) without using a 3rd party email client ? What's the best/easiest way ?

Can we access diffeent Sub-Labels too ?
Thanks
Chris

Post Reply