|
FORUMS PROFESSIONNELS WINDEV, WEBDEV et WINDEV Mobile |
| | | | | |
How to save sent email to Sent folder |
Débuté par PETR_K, 26 fév. 2022 23:55 - Aucune réponse |
| |
| | | |
|
| |
Membre enregistré 71 messages |
|
Posté le 26 février 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 |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|