Send campaign to contact

The SendCampaignToContact method can be used to send a campaign from your dotMailer account to a specific contact.

Guidance Notes

If you need to send to multiple contacts, we suggest you use SendCampaignToAddressBooksWithProgress.

Parameters

username string This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑908709770324@apiconnector.com required
password string This is the password from your API key. required
campaignId id The ID number of the campaign you wish to send. required
contactId int The ID of the contact you want to send the campaign to. required
sendDate dateTime The date and time you wish the campaign to be sent (server time). required

Return values

None.

Error responses

  • ERROR_CONTACT_INVALID
  • ERROR_CONTACT_NOT_FOUND
  • ERROR_CONTACT_SUPPRESSED
  • ERROR_CAMPAIGN_INVALID
  • ERROR_CAMPAIGN_NOT_FOUND
  • ERROR_CAMPAIGN_SENDNOTPERMITTED
  • ERROR_APIUSAGE_EXCEEDED
  • ERROR_INVALID_LOGIN
  • ERROR_PARAMETER_INVALID
  • ERROR_SYSTEM_SERVICETEMPORARILYUNAVAILABLE
  • ERROR_UNKNOWN

Request

Example of use in C# .NET

Sample request

Sample response

Get started with dotMailer:

Small & Medium businesses Large businesses
Call the team on 0845 337 9170
What our clients say:

“dotMailer has changed our complete marketing process for the better. It's one of the easiest apps I have used and allows us to do things we have only dreamed of before."

Amberley Shermon, Cazenove+Loyd