-
-
Save azizozbek/f61d8b3b339478d399129cc2982f4157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mail = new PHPMailer(); | |
$mail->IsSMTP(); | |
$mail->Host = "diamant.metanet.ch"; // smtp host | |
$mail->Port = "25"; // Port | |
$mail->SMTPAuth = true; | |
$mail->Username = "azo@azizozbek.ch"; //mail address | |
$mail->Password = "********"; //email password | |
$mail->From = "azo@azizozbek.ch"; // from mail address | |
$mail->FromName = "Azizullah Ozbek"; // From Name | |
$mail->AddAddress("azo@azizozbek.ch","Azizullah Ozbek"); //your mail address and name | |
$mail->WordWrap = 50; | |
$mail->Subject = $sub; // Mail Subject | |
$mail->Body = " Name : ".$name. " | |
<br>E-mail: ".$email. " | |
<br>Message: ".$message . " | |
<br>IP : ".$ip_adress ; | |
$mail->AddReplyTo($email,"Contact Form"); | |
$mail->AddAddress('azo@azizozbek.ch'); //mail address | |
$mail->IsHTML(true); | |
if($mail->Send()) | |
echo ""; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment