Open roubledodemiamgasoni opened 5 months ago
What I have to do, I need an example passing the credentials via code.
var Client: IAmazonSimpleEmailService; Request: ISendEmailRequest; Response: ISendEmailResponse; begin // 2. Instantiate client interface Client := TAmazonSimpleEmailServiceClient.Create; //Client := TAmazonSQSClient.Create('myAccessKey', 'mySecretKey'); // 3. Create and fill the request Request := TSendEmailRequest.Create; Request.Source := vg_EmailConfig.Remetente; Request.Destination := TDestination.Create; Request.Destination.ToAddresses.Add(Destinatarios); Request.Message := TMessage.Create( TContent.Create(Assunto), TBody.Create(TContent.Create(Mensagem))); // 4. Call operation method passing the request to receive the response; Response := Client.SendEmail(Request);
You just pasted the example. Just replace myAcessKey and mySecretKey with your own AWS Access ID and Secret, respectively.
myAcessKey
mySecretKey
What I have to do, I need an example passing the credentials via code.