Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

updateEmailContents


The updateEmailContents() method updates the html and text content for specified email.

Input

[vrtypens:updateEmailContentsArgs]

session_id [xsd:string] (required)
Your API session id.
email_id [xsd:int]
This email’s ID. Provided by VerticalResponse.
freeform_html [xsd:string]
The HTML content of the email.
freeform_text [xsd:string]
The text-only content of the email.

Output

[xsd:boolean]
The output is a boolean representing if contents were updated or not.

Examples

PHP

$vr->updateEmailContents( array(
    'session_id'    => $sid,
    'email_id'      => $cid,
    'freeform_html' => $html_content,
    'freeform_text' => $text_content
) );

Ruby

vr.updateEmailContents({
  'session_id'    => sid,
  'email_id'      => cid,
  'freeform_html' => html_content,
  'freeform_text' => text_content
})

Perl

$vrapi->updateEmailContents( {
    session_id    => $sid,
    email_id      => $cid,
    freeform_html => $html_content,
    freeform_text => $text_content
} );

Java

UpdateEmailContentsArgs updateEmailContentsArgs = new UpdateEmailContentsArgs();
	updateEmailContentsArgs.setSession_id(sessionID);
	updateEmailContentsArgs.setEmail_id(campaignID);
	updateEmailContentsArgs.setFreeform_html(freeform_html);
	
vr.updateEmailContents(updateEmailContentsArgs);

C#.NET

updateEmailContentsArgs objUpdateEmailContents = new updateEmailContentsArgs();
objUpdateEmailContents.session_id = _sSessionId;
objUpdateEmailContents.email_id = iemailId;
objUpdateEmailContents.freeform_html = _sHtmlContent;
objUpdateEmailContents.freeform_text = _sTextContent;

vr.updateEmailContents(objUpdateEmailContents);