Skip to content

TTMSFNCCloudMailChimpMarketing

Usage

A component that provides access to the MailChimp Transactional API. It allows the user to create and send emails to people.

Authorization information

API Key

Methods

Method name Description
SendMail(AMessage: TTMSFNCCloudMailChimpMessage; AAsync: Boolean; AIPPool: string) Send A mail With the settings defined in AMessage.
var
  m: TTMSFNCCloudMailChimpMessage;
  t: TTMSFNCCLoudMailChimpRecipient;
begin
  TMSFNCCloudMailChimpTransactions1.APIKey := APIKey.Text;
  m := TTMSFNCCloudMailChimpMessage.Create;
  m.HTML := Content.Text;
  m.Subject := Subject.Text;
  m.FromEmail := From.Text;
  t := TTMSFNCCloudMailChimpRecipient.Create;
  t.Email := Recipient.Text;
  m.SendTo.Clear;
  m.SendTo.Add(t);
  m.SubAccount := SubAccountID.Text;
  TMSFNCCloudMailChimpTransactions1.SendMail(m);
end;

Events

Event name Description
OnSendSuccessfull Event fired when the mail has been sent
OnError Event fired when an error occurred during the API call