You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resend4D is a Delphi library for the Resend email API. It ships as a runtime package (Resend4Delphi.dpk) with no external dependencies beyond the Delphi RTL and RESTComponents.
Import, Get Import, List Imports, Get Topics, Update Topics, Add to Segment, List Segments, Delete from Segment
Contact Properties
Create, Retrieve, List, Update, Delete
Ownership Rules
Callers are responsible for freeing all objects returned by TResendClient:
// Free single responses
Response := Client.EmailSend(Message);
try// use Responsefinally
Response.Free;
end;
// Free list responses — they own their items
List := Client.EmailList;
tryfor I := 0to List.Data.Count - 1do
WriteLn(List.Data[I].Id);
finally
List.Free; // frees items automaticallyend;
Building
Open Resend4D.groupproj in RAD Studio. The project group contains:
src/Resend4Delphi.dproj — runtime package
test/Resend4DTests.dproj — DUnit test runner (Win32/Debug)
Demo/Demo.dproj — VCL demo application
There is no command-line build script; compilation is done inside the IDE.
Running Tests
Build and run test/Resend4DTests.dproj. A VCL window lists all test cases. Tests are fully offline — they use TMockResendHttpClient and never call the real Resend API.
Delphi Versions
Requires Delphi 10.3 Rio or later (uses System.Net.HttpClient and generics).
License
Resend4D is free and open-source software licensed under the MIT License.
About
Resend4D is a Delphi library for the [Resend](https://resend.com) email API