Richard Hatherall
·
5 min readEmail seems so old now when considering all the messaging options available. It is old, 50+ years old! It’s been the lifeblood of many business processes and is still as important today as it ever was. With that in mind, the next release of Appercept AWS SDK for Delphi 0.11.0 includes support for Amazon Simple Email Service (SES).
Amazon SES is a reliable, scalable, and cost-effective email service and can be used for marketing campaigns, notifying users, or transactional emails.
Let’s see how we can send a simple email…
1program SendEmail;23{$APPTYPE CONSOLE}45implementation67uses8 AWS.SESV2;910var11 Client: ISESV2Client;12 Destination: ISESV2Destination;13 EmailMessage: ISESV2Message;14 Request: ISESV2SendEmailRequest;15 Response: ISESV2SendEmailResponse;1617begin18 Destination := TSESV2Destination.Create;19 Destination.AddToAddress('world@example.com');2021 EmailMessage := TSESV2Message.Create('Announcing...');22 EmailMessage.Body.Text := 'Hello, World!';2324 Request := TSESV2SendEmailRequest.Create;25 Request.FromEmailAddress := 'sender@example.com';26 Request.Destination := Destination;27 Request.Content.Simple := EmailMessage;2829 Client := TSESV2Client.Create;30 Client.SendEmail(Request);31end.
This is just the start. Why not start your next email marketing campaign with Amazon SES with tools written in Delphi? Or, seamlessly integrate email into your existing business applications built in Delphi?
Appercept AWS SDK for Delphi is available exclusively with active Enterprise or Architect subscriptions for Embarcadero Delphi or RAD Studio. You can install the SDK through the GetIt Package Manager within Delphi or RAD Studio if you have an active subscription.