File: /home/austral3d/fourdplan.com/webservices3.0/mail_borrar.php
<?php
$uploaddir = 'screenshots/';
$uploadfile = $uploaddir . basename($_FILES['file']['name']);
move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile);
$language = $_POST['language'];
if ($language == "english")
{
$subject = 'fourdplan: application message';
$text = 'The following comment has been sent:';
}
else
{
$subject = 'fourdplan: Mensaje de la aplicacion';
$text = 'Te han enviado el siguiente comentario:';
}
// $to = 'nd0806@gmail.com, ' . $_POST['addresses'];
// $message = '
// <html>
// <head>
// </head>
// <body>
// <div>
// <center>
// <img src="http://www.fourdplan.com/webservices/banner2.png" height="107" width="765">
// <div style = "font-size: 14px; color: blue;">
// <p>' . $text . '</p>
// <p>' . $_POST['message'] . '</p>
// </div>
// <img src="http://www.fourdplan.com/webservices/screenshots/' . $_FILES['file']['name'] . '" height="395" width="700">
// </center>
// </div>
// </body>
// </html>
// ';
// $headers = 'MIME-Version: 1.0' . "\r\n";
// $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// $headers .= 'From: Austral3D <tecnologia@austral3d.com>' . "\r\n";
// $mail_sent = mail($to, $subject, $message, $headers);
if ($mail_sent)
echo('Mail enviado');
else
echo('Error al enviar el mail');
?>