Mail with IMAP protocol lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- vdijken · 2023-01-17 09:06 I am looking for a simple example which sends an email via my email account using IMAP port 993. I only find (complex) examples using SMTP port 25. ---------------------------------------------------------------------- Thaddy · 2023-01-17 09:13 You can simply change the port in most examples and add the openssl units. Point me to such a *complex* example: don't believe it. Simple example here: https://forum.lazarus.freepascal.org/index.php/to pic,16321.msg88319.html#msg88319 ---------------------------------------------------------------------- paweld · 2023-01-17 09:14 IMAP is only used to receive emails. The SMTP protocol is used for sending, which by default runs on ports 587 (without encryption and STARTTLS) and 465 (SSL).