You may not redistribute this script, modified, or in it's original condition.
You may not remove the copyright at the bottom of this script.
Removing the copyright violates the Usage Rights of this script.
For support on this script, please visit www.panthersden.net
*/
### Start Settings ###
//Website Name
$websitename="Ollin / Agencia de Publicidad & Web Media";
// What's your email address?
$myemail="mtorres@ollinpublicidad.com";
//What priority should I send the mail? 1 is Urgent, 10 Is low. 3 Is default.
$priority="3";
//Should we allow visitors to attach *.zip files? 1=yes, 0=no.
$allowattach="1";
//Value for the Submit Button
$submitvalue=" Enviar Correo ";
//Value for the Reset Button
$resetvalue=" Limpiar Forma ";
//Default subject header? This will be sent if the user does not specify a subject.
$defaultsubject="Informacion";
//Your thank you message, displays after the email has been sent.
$thanksmessage="¡Muchas gracias! Su correo ha sido enviado, nos pondremos en contacto pronto.";
//Table Width
$twidth="60";
//Show table border? 1=yes, 0=no.
$tableborder="1";
//Table Border Color
$tbordercolor="#f4f4f4";
//Table head background Color
$thead="#FFFFFF";
//Table Body Background Color
$tbody="#FFFFFF";
//Font face
$fontface="Verdana,Arial";
//Font Head Color
$fonthead="#000000";
//Font Head Size
$fontheadsize="2";
//Font BodyColor
$fontbody="#000000";
//Font Body Size
$fontbodysize="1";
### End Settings ###
/*
Please do not edit below this line unless you know what you are doing.
*/
If($_POST['domail']) {
extract($_POST);
If($allowattach) {
$attachment = $_FILES['attachment']['tmp_name'];
$attachment_type = $_FILES['attachment']['type'];
}
If ($yourname=="") {
$error = "1";
$error_text .= "¡Falta escribir su nombre! ";
}
If ($youremail=="") {
$error = "1";
$error_text .= "¡Falta su dirección de correo! ";
}
If($emailsubject=="") {
$emailsubject=$defaultsubject;
}
If ($youremail) {
If (!eregi("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}\$",$youremail)){
$error = "1";
$error_text .= "¡Dirección de correo invalida! ";
}
}
If ($yourmessage=="") {
$error = "1";
$error_text .= "¡Falta escribir su mensaje! ";
}
If($allowattach) {
If($attachment) {
If($attachment_type!=="application/x-zip-compressed") {
$error = "1";
$error_text .= "Solo archivos *.zip soportados. ";
}
}
}
If($error=="1") {
$disperrors=$error_text;
} Else {
$headers = "From: $yourname <$youremail>\n";
$headers .= "Reply-To: $yourname <$youremail>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; boundary=\"MIME_BOUNDRY\"\n";
$headers .= "X-Sender: SimpleMailer <$youremail>\n";
$headers .= "X-Mailer: SimpleMailer\n";
$headers .= "X-Priority: $priorty\n";
$headers .= "Return-Path: <$myemail>\n";
$headers .= "This is a multi-part message in MIME format.\n";
If($allowattach) {
If($attachment) {
$fp = fopen($attachment,"r");
$str = fread($fp, filesize($attachment));
$str = chunk_split(base64_encode($str));
}
}
$message = "--MIME_BOUNDRY\n";
$message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$message .= "Content-Transfer-Encoding: quoted-printable\n";
$message .= "\n";
$message .= "$yourmessage";
$message .= "\n";
If($allowattach) {
If($attachment) {
$message .= "--MIME_BOUNDRY\n";
$message .= "Content-Type: application/octet-stream; name=\"" . $_FILES['attachment']['name'] . "\"\n";
$message .= "Content-disposition: attachment\n";
$message .= "Content-Transfer-Encoding: base64\n";
$message .= "\n";
$message .= "$str\n";
$message .= "\n";
$message .= "--MIME_BOUNDRY--\n";
}
}
If(!mail($myemail,$emailsubject,$message,$headers)) {
exit("Ha habido un error, por favor contacte al administrador");
}
Echo("
\n");
Echo("\n");
Echo("$websitename\n");
Echo("\n");
Echo("\n");
exit();
}
}
/*
Start the form, if you are editing this form, please remember to escape all quotes " with a backslash, an example would be
If you do not do this, you will get phrase errors.
Also, please remember that if you change values in this form, the script may not work how it was originally meant to.
*/
?>
:: OLLIN :: Vanguardia Creativa y Tecnológica.