}
?>
"><br/>
            receivedDate: <input type="text" name="receivedDate" value="<?php 
if (isset($_REQUEST['receivedDate'])) {
    echo htmlspecialchars($_REQUEST['receivedDate']);
}
?>
"><br/>
            sentDate: <input type="text" name="sentDate" value="<?php 
if (isset($_REQUEST['sentDate'])) {
    echo htmlspecialchars($_REQUEST['sentDate']);
}
?>
"><br/>
            emailSentType: <input type="text" name="emailSentType" value="<?php 
if (isset($_REQUEST['emailSentType'])) {
    echo htmlspecialchars($_REQUEST['emailSentType']);
}
?>
"><br/>
    <input type="submit">
<input type="hidden" name="go">
</form>
<?php 
include '../infusionsoft.php';
include 'testUtils.php';
if (isset($_REQUEST['go'])) {
    $out = Infusionsoft_EmailService::attachEmail($_REQUEST['contactId'], $_REQUEST['fromName'], $_REQUEST['fromAddress'], $_REQUEST['toAddress'], $_REQUEST['ccAddresses'], $_REQUEST['bccAddresses'], $_REQUEST['contentType'], $_REQUEST['subject'], $_REQUEST['htmlBody'], $_REQUEST['textBody'], $_REQUEST['header'], $_REQUEST['receivedDate'], $_REQUEST['sentDate'], $_REQUEST['emailSentType']);
    var_dump($out);
}