Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/sendmailform.php
<!DOCTYPE html>
<html lang="en">
<head>
  <title><?php echo TITLE;?></title>
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />

<body>
<?php 
require 'PHPMailerAutoload.php';
$mail = new PHPMailer();
                                $mail->PluginDir = "";
                                $mail->From = 'biuro@etykietyweselne.pl'; //adres naszego konta
                                $mail->FromName = 'EtykietyWeselne.pl';//nagłówek From
                                $mail->SetLanguage("pl", "classes/language/");
                                $mail->CharSet = "utf-8";
                                $mail->AddReplyTo($_POST['email']);
                                          
                                          $mail->Subject = 'Wiadomość ze strony kreatora EtykietyWeselne.pl';
                                          $mail->IsHTML(true);
    
                                          $mail->Body = '<p>Wysłano przez: <b>'.$_POST['imie'].' '.$_POST['tel'].' '.$_POST['email'].'</b></p>'.$_POST['tresc'].'<p>-------------<br>Wysłano ze strony: www.etykietyweselne.pl</p>';
                                          $mail->AddAddress('allegro@prolabel.pl');
                                          $mail->AddAddress('biuro@mfbiz.pl');
                                          
                                          $mail->AddAttachment('upload/'.$img);
                                
                                if($mail->Send()){
                                
                                echo '<h1 class="wyslanopoprawnie">Dziękujemy za kontakt. Kliknij <a href="'.$_SERVER['HTTP_REFERER'].'">tutaj</a>, żeby powrócić do kreatora.</h1>';
                                
                                }
                                

include('modules/footer.php');?>
</body>
</html>