MyNewsletterBuilder API
Overview Quick Start Examples Downloads
 
CampaignCreate < Return to Method List
integer CampaignCreate(string $name, string $subject, struct $from, struct $reply, string $html [, string $text [, boolean $link_tracking [, boolean $gat]]])
Create a new campaign (using the Advanced HTML editor).
Parameters
string name The name for the new campaign.
string subject The subject line.
struct from Data to use in the From field: "John Doe" <email@domain.tld>. Requires:

string name The name to use.
string email The email address to use.
struct reply Data to use in the Reply-To field: "John Doe" <email@domain.tld>. Requires:

string name The name to use.
string email The email address to use.
string html The HTML content for the campaign.
string text OPTIONAL. The text content for the campaign. Use an empty string and we will generate the content from your HTML version.
boolean link_tracking OPTIONAL. Enable link tracking for this campaign. Default = TRUE.
boolean gat OPTIONAL. Enable Google Analytics Tracking for this campaign. Requires $link_tracking. Default = FALSE.
Return Value
integer Returns the id for the newly created campaign.
 
 
Copyright © 2003- MyNewsletterBuilder, Inc.