Skip to content

Commit

Permalink
Can use __DIR__ now
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Sep 29, 2017
1 parent 2c06e68 commit cff9384
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/DKIM_sign.phps
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $mail = new PHPMailer;
$mail->setFrom('[email protected]', 'First Last');
$mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer mail() test';
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);

//This should be the same as the domain of your From address
$mail->DKIM_domain = 'example.com';
Expand Down
2 changes: 1 addition & 1 deletion examples/exceptions.phps
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ try {
$mail->Subject = 'PHPMailer Exceptions test';
//Read an HTML message body from an external file, convert referenced images to embedded,
//and convert the HTML into a basic plain-text alternative body
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/gmail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $mail->Subject = 'PHPMailer GMail 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);

//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
Expand Down
2 changes: 1 addition & 1 deletion examples/mail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer mail() 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/pop_before_smtp.phps
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ try {
$mail->Subject = 'PHPMailer POP-before-SMTP test';
//Read an HTML message body from an external file, convert referenced images to embedded,
//and convert the HTML into a basic plain-text alternative body
$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/sendmail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer sendmail 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/smime_signed_mail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer mail() 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/smtp.phps
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/smtp_no_auth.phps
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer SMTP without auth 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
Expand Down
2 changes: 1 addition & 1 deletion examples/ssl_options.phps
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $mail->Subject = 'PHPMailer SMTP options 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->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->msgHTML(file_get_contents('contents.html'), __DIR__);

//Send the message, check for errors
if (!$mail->send()) {
Expand Down

0 comments on commit cff9384

Please sign in to comment.