<?php
function Send_Mail($to,$subject,$body)
{
require 'config/class.phpmailer.php';
$from = "from@yourwebsite.com";
$mail = new PHPMailer();
$mail->IsSMTP(true); // используем протокол SMTP
$mail->IsHTML(true);
$mail->SMTPAuth = true; // разрешить SMTP аутентификацию
$mail->Host = "tls://smtp.yourwebsite.com"; // SMTP хост
$mail->Port = 465; // устанавливаем SMTP порт
$mail->Username = "SMTP_Username"; //имя пользователя SMTP
$mail->Password = "SMTP_Password"; // SMTP пароль
$mail->SetFrom($from, 'From Name');
$mail->AddReplyTo($from,'From Name');
$mail->Subject = $subject;
$mail->MsgHTML($body);
$address = $to;
$mail->AddAddress($address, $to);
$mail->Send();
}
?>
Fatal error: Cannot redeclare Send_Mail() (previously declared in D:\orion.com\pages\email\reg.php:2) in D:\orion.com\pages\email\reg.php on line 21