forked from PHPMailer/PHPMailer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters