���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkewebvumi.com/ |
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; //Load Composer's autoloader require 'vendor/autoload.php'; //Create an instance; passing `true` enables exceptions $mail = new PHPMailer(true); //Server settings $mail->SMTPDebug = 0; //Enable verbose debug output $mail->isSMTP(); //Send using SMTP $mail->Host = 'mail9209.maychuemail.com'; //Set the SMTP server to send through $mail->SMTPAuth = true; //Enable SMTP authentication $mail->Username = '[email protected]'; //SMTP username $mail->Password = 'Timon!23'; //SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; //Enable implicit TLS encryption $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->CharSet = 'UTF-8'; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` //Recipients $mail->setFrom('[email protected]', 'kvvanhvu.com'); //$mail->addAddress('[email protected]', 'Joe User'); $mail->addAddress('[email protected]'); //Name is optional $mail->addAddress('[email protected]'); //$mail->addReplyTo($email, $name); //$mail->addCC('[email protected]'); // $mail->addBCC('[email protected]'); //Attachments //$mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name //Content $mail->isHTML(true); //Set email format to HTML $mail->Subject = 'Test tiêu đề gửi email từ website'; $mail->Body = 'Test nội dung gửi email từ website'; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; if($mail->send()){ echo 'Đã gửi'; }else{ echo 'Không gửi được'; } exit(); ?>