Page 1 of 1

SMTPclient() - access Sent items

Posted: Mon Oct 30, 2023 3:39 am
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

Re: SMTPclient() - access Sent items

Posted: Mon Oct 30, 2023 4:35 am
by skiman
Hi,

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

Re: SMTPclient() - access Sent items

Posted: Mon Oct 30, 2023 4:44 am
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

Re: SMTPclient() - access Sent items

Posted: Mon Oct 30, 2023 6:13 am
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

Re: SMTPclient() - access Sent items

Posted: Thu Nov 02, 2023 12:53 am
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