<?php

#COPY_BLOCK_FROMNAMEANDEMAIL_RUN1#
		$send_details['customheader'] = $_POST['customheader'];
#FINISH_BLOCK_FROMNAMEANDEMAIL_RUN1#	


#COPY_BLOCK_FROMNAMEANDEMAIL_RUN2#
		$mail_result = $this->Email_API->Send(true, $disconnect, $this->jobdetails['customheader']);
#FINISH_BLOCK_FROMNAMEANDEMAIL_RUN2#	


#COPY_BLOCK_FROMNAMEANDEMAIL_RUN3#
		function Send($replace=false, $disconnect_from_smtp=true, $customheader='N')
#FINISH_BLOCK_FROMNAMEANDEMAIL_RUN3#

#COPY_BLOCK_FROMNAMEANDEMAIL_RUN4#
		if($customheader == 'N'){
#FINISH_BLOCK_FROMNAMEANDEMAIL_RUN4#

#COPY_BLOCK_FROMNAMEANDEMAIL_RUN5#
		}else{$this->extra_headers="";}
#FINISH_BLOCK_FROMNAMEANDEMAIL_RUN5#
?>

#COPY_BLOCK_FROMNAMEANDEMAIL1#
			<tr>
                <td width="200" class="FieldLabel">
                    {template="Required"}
                    Custom Header
                </td>
                <td>
                    <input type="radio" name="customheader" id="customheader" value="Y" />YES<input type="radio" name="customheader" id="customheader" value="N" checked="checked" />NO
                </td>
            </tr>
#FINISH_BLOCK_FROMNAMEANDEMAIL1#