Formularz do rozsyłania wiadomości z informacjami "firmowymi"
User loguje się wysyła wiadomość z konta "system@mail.pl" do swoich kontaktów, kontakt dostaje mejla i w replyto ma mejla "uzytkownik1@mail.pl"
problem polega ze klient.kontakt po otrzymaniu mejla w polu replyto ma 2 adresy system@mail.pl i uzytkownik1@mail.pl a ja bym chcial tylko 1 "uzytkownik1@mail.pl" ale niestety za nic nie moge doprowadzić do takeigo stanu.
Docelowo chciałbym aby w polu replyto programu pocztowego byl tylko 1 adres email
//error_reporting(E_ALL); //error_reporting(E_STRICT); date_default_timezone_set('America/Toronto'); require_once('klasy/PHPMailer/class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.****"; // SMTP server # $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) (org 2) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->Host = "smtp.****"; // sets the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "*******"; // SMTP account username $mail->Password = "********"; // SMTP account password $mail->SetFrom('**@**', 'System obsługi firmy'); $mail->AddReplyTo("user@mail.pl","First Last"); $mail->Subject = $_POST["kon_temat"]; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $address = $_POST["kon_odbio"]; $mail->AddAddress($address, $_POST["kon_odbio"]); # $mail->AddAttachment("pliki/logo.png"); // attachment # $mail->AddAttachment("pliki/pasek.png"); // attachment if(!$mail->Send()) { } else { # echo "Message sent!"; }