1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php require_once( realpath(dirname(__FILE__)) . "/inc/class.phpmailer.php");
function create_mail() { $x_mail = new PHPMailer(); $x_mail->IsSMTP(); $x_mail->Host = "localhost"; //$x_mail->Host = "192.168.161.68"; //$x_mail->SMTPAuth = true; $x_mail->CharSet = "UTF-8"; $x_mail->WordWrap = 50; $x_mail->IsHTML(true); return $x_mail; }
|