The following delphi example codes demonstrate how to request read receipt and deliveryreceipt.
Read Receipt
Some e-mail applications, such as Microsoft Office Outlook, employ a read-receipttracking mechanism. A sender selects the receipt request option prior to sendingthe message. Upon opening the email, each recipient has the option of notifyingthe sender that the message was opened and read.
Delphi Components, CBuilder,.NET, Lazarus and Firemonkey. Delphi WebSockets Components Trial. Full Enterprise Single Trial version, works for a time limited period and can only be installed in a single WorkStation (Delphi 7 - Rad Studio 10.4). Warning: Do not download single files and merge them into your sources if you do not exactly know what you are doing! For Indy 10: if you use Tortoise as your SVN client, there are StoreRevNum.bat and StoreRevNumHooks.bat scripts in the root Lib folder which can be used to update IdVers.inc and various.rc files with the current SVN revision. Converting Delphi 2007 Indy 10.2.3 to Delphi 2009 Indy 10.5.5 Edit Hello, I am currently attempting to port over a Delphi 2007 project that uses Indy 10.2.3 (very successfully) to Delphi 2009 and Indy 10.5.5 (I just got the latest development build this morning). I think I am running into an encoding issue, but am not sure. If your operating system is Windows XP/Vista/Windows 7/Windows 2003/2008/2008 R2/2012/2012 R2, you need to enable TLS 1.2 protocol in your operating system like this: Enable TLS 1.2 on Windows XP/Vista/7/10/Windows 2008/2008 R2/2012.
Delphi 10.2 Tokyo Pro Named User and Mobile Add-on Pack Upgrade from Starter: Delphi 10.2 Tokyo Professional 10 Named Users: Delphi 10.2 Tokyo Professional 10 Named Users (Upgrade from XE7 or later) Delphi 10.2 Tokyo Professional 5 Named Users: Delphi 10.2 Tokyo Professional 5 Named Users (Upgrade from XE7 or later).
However, there is no guarantee that you will get a read-receipt. Some possible reasonare that very few e-mail applications or services support read receipts, or simplybecause users disable the functionality. Those do support read-receipt aren’t necessarilycompatible with or capable of recognizing requests from a different e-mail serviceor application
Delivery Receipt and Failure Report (NDS)
It is also called a DSN (delivery service notification), which is a request to therecipient’s email server to send you a notification about the delivery of an emailyou’ve just sent. The notification takes the form of an email, and will tell youif your delivery succeeded (Delivery Receipt), failed, got delayed (Failure Report - NDS).
Sections:
Installation¶
EASendMail is a SMTP component which supports all operations of SMTP/ESMTP protocols(RFC 821, RFC 822, RFC 2554). Before you can use the following example codes,you should download the EASendMail Installer and install it on your machine at first.
![Indy 10 for delphi 7 download windows 7 Indy 10 for delphi 7 download windows 7](/uploads/1/2/5/7/125758416/114670103.png)
Add Reference¶
To use EASendMail SMTP ActiveX Object in your Delphi project, the first step is “Add Unit file of EASendMail to your project”.Please go to
C:ProgramFilesEASendMailIncludedelphi
orC:ProgramFiles(x86)EASendMailIncludedelphi
folder, find EASendMailObjLib_TLB.pas
,and then copy this file to your project folder.You can also create “EASendMailObjLib_TLB.pas” manually like this:
- Delphi 7Please choose menu ->
Project
->ImportTypeLibrary
and selectEASendMailObjActiveXObject
,clickCreateUnit
, the reference of EASendMail ActiveX Object will be added to your project. - Delphi XEIf you use Delphi XE to import the Type library, Please choose menu->
Component
->ImportComponent
->ImportTypeLibrary
-> and selectEASendMailObjActiveXObject
-> haveGenerateComponentWrapper
checked -> Create Unit.
Delphi Indy Examples
Then you can start to use it in your Delphi Project.
Delphi - Request Delivery Receipt and Read Receipt - Example¶
The following example codes demonstrate requesting read receipt and delivery receipt from an email.In order to run it correctly, please change
SMTPserver
, user
, password
, sender
, recipient
value to yours.Note
Delphi 10 Download
To get full sample projects, please download and install EASendMail on your machine.
TLS 1.2 Protocol¶
Indy Delphi Components
TLS is the successor of SSL, more and more SMTP servers require
TLS1.2
encryption now.If your operating system is
WindowsXP/Vista/Windows7/Windows2003/2008/2008R2/2012/2012R2
, you need toenable TLS 1.2 protocol in your operating system like this:32bit/x64 ActiveX DLL¶
Seperate builds of run-time dll for 32 and x64 platform
File | Platform |
Installation PathLibnativex86EASendMailObj.dll | 32 bit |
Installation PathLibnativex64EASendMailObj.dll | 64 bit |
Distribution¶
- Standard EXEFor VB6, C++, Delphi or other standard exe application, you can distribute EASendMailObj.dll with your application to target machine without COM-registration and installer.To learn more detail, please have a look at Registration-free COM with Manifest File.
- ScriptFor ASP, VBScript, VBA, MS SQL Stored Procedure, you need to install EASendMail on target machine by EASendMail installer, both 32bit/x64 DLL are installed and registered.