Skip to content

Delphi interface to Amazon SES (Simple Email Service)

Notifications You must be signed in to change notification settings

badboy3000/ksSES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ksSES

Delphi interface to Amazon SES (Simple Email Service)

Example uses...

Vefify a new email address

procedure TForm1.Button1Click(Sender: TObject);
var
  ASES: IksSES;
begin
  // create the interface
  ASES := CreateSes(sesEndpointIreland, 'YOUR_PUBLIC_KEY', 'YOUR_PRIVATE_KEY');
// verify email identity...
  ASES.VerifyEmailIdentity('graham@kernow-software.co.uk');
end;

Get all verified senders

procedure TForm1.Button1Click(Sender: TObject);
var
  ASES: IksSES;
  ASenders: TStrings;
begin
  // create the interface
  ASES := CreateSes(sesEndpointIreland, 'YOUR_PUBLIC_KEY', 'YOUR_PRIVATE_KEY');

  ASenders := TStringList.Create;
  try
    // get verified senders...
    ASES.GetSenders(ASenders, True);
    ShowMessage(ASenders.Text);
  finally
    ASenders.Free;
  end;
end;

Send an email

procedure TForm1.Button1Click(Sender: TObject);
const
  CR = #13#10;
var
  ASES: IksSES;
begin
  // create the interface
  ASES := CreateSes(sesEndpointIreland, 'YOUR_PUBLIC_KEY', 'YOUR_PRIVATE_KEY');

  // send an email...
  ASes.SendEmail('graham@kernow-software.co.uk',
                 'person@somewhere.com',
                 'the subject',
                 'first line of the body :-)'+CR+CR+'second line of the body');
end;

About

Delphi interface to Amazon SES (Simple Email Service)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages