Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017-09-18 19:14:37 SERVER -> CLIENT: 220-host.myfbs-apps.com ESMTP Exim 4.89 #1 Tue, 19 Sep 2017 03:14:37 +0800
- 220-We do not authorize the use of this system to transport unsolicited,
- 220 and/or bulk e-mail.
- 2017-09-18 19:14:37 CLIENT -> SERVER: EHLO eumccis.com
- 2017-09-18 19:14:37 SERVER -> CLIENT: 250-host.myfbs-apps.com Hello eumccis.com [::1]
- 250-SIZE 52428800
- 250-8BITMIME
- 250-PIPELINING
- 250-AUTH PLAIN LOGIN
- 250-STARTTLS
- 250 HELP
- 2017-09-18 19:14:37 CLIENT -> SERVER: STARTTLS
- 2017-09-18 19:14:37 SERVER -> CLIENT: 220 TLS go ahead
- 2017-09-18 19:14:37 CLIENT -> SERVER: QUIT
- 2017-09-18 19:14:38 SERVER -> CLIENT: 221 host.myfbs-apps.com closing connection
- 2017-09-18 19:14:38 SMTP connect() failed.
- $mail = new PHPMailer;
- $mail->IsSMTP();
- $mail->SMTPDebug =2;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "tls";
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 587;
- $mail->Username = "xyz@gmail.com";
- $mail->Password = "password";
- $mail->SetFrom('xyz@gmail.com', $admin_site_title);
- foreach ($admin_email as $k => $v) {
- $mail->addAddress($v);
- }
- $mail->isHTML(true);
- $mail->Subject = $rs_array['subject'];
- $mail_content = mail_template_replace($rs_array['content'], $postfields);
- $mail->Body = '<body>' . $mail_content . '</body>';
- if(!$mail->Send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
- } else {
- echo "Message has been sent";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement