From 2c06e68d2244e4f37ff03ca007b68886d816e4d4 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Fri, 29 Sep 2017 16:04:52 +0200 Subject: [PATCH] Can use __DIR__ now --- examples/gmail_xoauth.phps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gmail_xoauth.phps b/examples/gmail_xoauth.phps index 30b87a30..f2cc1e83 100644 --- a/examples/gmail_xoauth.phps +++ b/examples/gmail_xoauth.phps @@ -89,7 +89,7 @@ $mail->Subject = 'PHPMailer GMail XOAUTH2 SMTP test'; //Read an HTML message body from an external file, convert referenced images to embedded, //convert HTML into a basic plain-text alternative body $mail->CharSet = 'utf-8'; -$mail->msgHTML(file_get_contents('contentsutf8.html'), dirname(__FILE__)); +$mail->msgHTML(file_get_contents('contentsutf8.html'), __DIR__); //Replace the plain text body with one created manually $mail->AltBody = 'This is a plain-text message body';