%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/buggydubrovnik.com/prodaja/
Upload File :
Create Path :
Current File : //var/www/html/buggydubrovnik.com/prodaja/sendemail.php

<?php



	date_default_timezone_set('Etc/UTC');



require '../PHPMailer_5.2.1/PHPMailerAutoload.php';



//Create a new PHPMailer instance

$mail = new PHPMailer;





$body=$_POST['message'];





$mail->IsSMTP(); // telling the class to use SMTP

$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)

                                           // 1 = errors and messages

                                           // 2 = messages only

  $mail->SMTPAuth   = true;                  // enable SMTP authentication



$mail->Host       = "mail.adriatic-explore.com"; // sets the SMTP server



$mail->Port       = 587;                    // set the SMTP port for the GMAIL server



$mail->Username   = "info@adriatic-explore.com"; // SMTP account username



$mail->Password   = "AdExDu333!?";       

			

$mail->SetFrom('info@adriatic-explore.com', 'Buggy safari');



$mail->AddReplyTo("info@adriatic-explore.com","Buggy safari");



$mail->Subject    = "PUTNI NALOG";



$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test



$mail->MsgHTML($body);



$address = $_POST['email'];

$mail->AddAddress($address, "");





if(!$mail->Send()) {

  echo "Mailer Error: " . $mail->ErrorInfo;

} else {

  echo "Message sent!";

}

    

?>


Zerion Mini Shell 1.0