Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Library
      • Tracking
    • Exceptions
    • Services
    • Util
    • WebHooks

Classes

  • Campaign
  • ClickThroughDetails
  • MessageFooter
  • Schedule
  • TestSend
  • Overview
  • Namespace
  • Class

Class TestSend

Represents a campaign Test Send in Constant Contact

Ctct\Components\Component
Extended by Ctct\Components\EmailMarketing\TestSend
Namespace: Ctct\Components\EmailMarketing
Package: Components\EmailMarketing
Author: Constant Contact
Located at Components/EmailMarketing/TestSend.php
Methods summary
public static Ctct\Components\EmailMarketing\TestSend
# create( array $props )

Factory method to create a TestSend object from an array

Factory method to create a TestSend object from an array

Parameters

$props
  • associative array of initial properties to set

Returns

Ctct\Components\EmailMarketing\TestSend
public
# addEmail( string $email_address )

Add an email address to the set of addresses to send the test send too

Add an email address to the set of addresses to send the test send too

Parameters

$email_address
public string
# toJson( )

Create json used for a POST/PUT request, also handles removing attributes that will cause errors if sent

Create json used for a POST/PUT request, also handles removing attributes that will cause errors if sent

Returns

string
Methods inherited from Ctct\Components\Component
getValue()
Properties summary
public string $format

Format of the email to send (HTML, TEXT, HTML_AND_TEXT)

Format of the email to send (HTML, TEXT, HTML_AND_TEXT)

#
public $personal_message

Personal message to send along with the test send

Personal message to send along with the test send

#
public array $email_addresses

Array of email addresses to send the test send to

Array of email addresses to send the test send to

# array()
API documentation generated by ApiGen