arkadaşlar smtp ile mail gönderme örneği buldum düzenledim çalışıyor ama gelen mail ;
adı soyadı mail@adresi mesajı
bu şekilde yan yana geliyor bunu nasıl
Adı Soyadı : sadakat
Mail adresi :
sss@ss.com
Mesajı: vsvs
bu şekilde yapabiliriz yardımcı olurmusunuz ?
mail.php kodu
<?
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.host.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "mail@host.com"; // SMTP username
$mail->Password = "123456"; // SMTP password
$mail->From = "mail@host.com"; // smtp kullanıcı adınız ile aynı olmalı
$mail->Fromname = "giden ismi";
$mail->AddAddress("ukash@yukash.com","Yukash Destek");
$mail->Subject = $_POST['baslik'];
$mail->Body = implode(" ",$_POST);
if(!$mail->Send())
{
echo "Mesaj Gönderilemedi <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Mesaj Gönderildi";
?>form.html
<html>
<head>
<meta http-equiv="Content-Language" content="tr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="mail.php" method="post">
<p><font color="#FF0000"><b>Adınız Soyadınız:
<input type="text" name="isim" size="20"></b></font></p>
<p><font color="#FF0000"><b>E-mail Adresiniz:
<input type="text" name="mailad" size="20"></b></font></p>
<blockquote>
<p><font color="#FF0000"><b>Konu :
</b></font> <input type="text" name="baslik" size="20"></p>
</blockquote>
<p><b><font color="#FF0000">Mesajınız :
<textarea rows="6" name="mesaj" cols="30"></textarea></font></b></p>
<p><input type="submit" value="Gönder"></p>
</form>
</body>
</html>