|
How to save sent email to Sent folder |
Iniciado por PETR_K, 26,feb. 2022 23:55 - No hay respuesta |
| |
| | | |
|
| |
Miembro registrado 71 mensajes |
|
Publicado el 26,febrero 2022 - 23:55 |
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 |
| |
| |
| | | |
|
| | | | |
| | |
|