Conexión con la BD --------------- J. Eusebio Bolon [SEBI] - 29/12/2006 ---+ // | REALIZADO EN | HOBERON DESARROLLO E INNOVACION | // | PAGINA | FormContact.php | // | DESCRIPCION | Archivo que contiene la gestión integral del envio de email de contacto. | // +----------------------------------------------------------------------------------------------+ if ( (md5('HfJ-(·)|(·)'.$_POST['TimeStamp']) == $_POST['IdSecure']) && (strpos($_POST['Coments'], "http")=== false ) ) { $Destinatario1 = 'soporte@medweb.es'; $Destinatario2 = $_POST['Email']; $AsuntoEmail = 'Formulario de contacto www.e-medicalsoftware.com'; $Contenido = 'Name
'.$_POST['Name'].'

' . 'Matter
'.$_POST['Email'].'

' . 'Asunto
'.$_POST['Asunto'].'

' . 'Comments
'.$_POST['Coments'].'

'; if ( FenvioEmail($AsuntoEmail, $Destinatario1, $Contenido) == true ){ $html = '

Your information has been sent successfully, you will receive a response '. $_POST['Email'] .'

Thanks for your cooperation.

'; FenvioEmail($AsuntoEmail, $Destinatario2, $Contenido); }else{ $html = '

An error occurred in sending in your information.

Thanks for your cooperation.

'; } //echo Ftemplate($html); } else { //Muestro el formulario $html = '
' .'' .'' .'

Name

' .'

Email

' .'

Matter

' .'

Comments

' .'

' .'
'; //echo Ftemplate($html); } function FenvioEmail($Asunto, $Destinatario, $Contenido){ // +----------------------------------------------------- J. Eusebio Bolon [SEBI] - 03/11/2005 ---+ // | Función que realiza el envío de un email de notificacion. | // +----------------------------------------------------------------------------------------------+ $Ejecucion = false; //Asunto del correo $mail_asunto = $Asunto; $mail_para = $Destinatario; # Las tres líneas que vienen a continuación son necesarias para que la cabecera del mensaje esté en formato HTML $mail_header = 'MIME-Version: 1.0'. "\n"; $mail_header .= 'Content-Type: text/html; charset=iso-8859-1'. "\n"; $mail_header .='From: GHC '. "\n"; $mail_header .='X-Mailer: PHP/'. phpversion(); $mail_mensaje ='' .'' .'' .'CONTACT FORM' .'' .''."\n" .'' .'' . $Contenido .'



'. date("Y-m-d H:i:s") .'

' .'' .''; // Envio del correo mail($mail_para, $mail_asunto, $mail_mensaje, $mail_header); $Ejecucion = true; return $Ejecucion; } ?> CONTACT | DEVELOPERS ONLINE SOLUTIONS FOR HEALTH SECTOR.

MedWeb: medical software, medical sites, medical databases, medical history, medical congresses

Contact