|
How to save sent email to Sent folder |
Iniciado por PETR_K, fev., 26 2022 11:55 PM - Sem resposta |
| |
| | | |
|
| |
Membro registado 71 mensagems |
|
Publicado em fevereiro, 26 2022 - 11:55 PM |
Hi, I am able to sent emails but I can not figure out how to upload these emails to Sent folder.
I tried EmailCopy() and to copy email variable but it looks like it can copy only email that has been previously read from email server.
Any idea how to do that in WinDev? It must be supersimple, I must be overlooking something.
This is possible solution in c# https://www.limilabs.com/blog/upload-email-to-sent-folder-after-sending
// C# if (result.Status == SendMessageStatus.Success) { using (Imap imap = new Imap()) { imap.Connect("imap.server.com"); // or ConnectSSL for SSL imap.UseBestLogin("user", "password"); FolderInfo sent = new CommonFolders(imap.GetFolders()).Sent; imap.UploadMessage(sent, email); imap.Close(); } }
Thanks in advance
Petr |
| |
| |
| | | |
|
| | | | |
| | |
|