Fix wrong filename for image file - thanks to @mauglee

This commit is contained in:
Synchro 2013-06-06 17:27:12 +02:00
parent bd69132c66
commit d852751809
8 changed files with 9 additions and 9 deletions

View File

@ -169,9 +169,9 @@ try {
$example_code .= "\n\$mail->WordWrap = 80;";
$example_code .= "\n\$mail->MsgHTML(\$body, dirname(__FILE__), true); //Create message bodies and embed images";
$mail->AddAttachment('images/phpmailer-mini.gif', 'phpmailer-mini.gif'); // optional name
$mail->AddAttachment('images/phpmailer_mini.gif', 'phpmailer_mini.gif'); // optional name
$mail->AddAttachment('images/phpmailer.png', 'phpmailer.png'); // optional name
$example_code .= "\n\$mail->AddAttachment('images/phpmailer-mini.gif', 'phpmailer-mini.gif'); // optional name";
$example_code .= "\n\$mail->AddAttachment('images/phpmailer_mini.gif', 'phpmailer_mini.gif'); // optional name";
$example_code .= "\n\$mail->AddAttachment('images/phpmailer.png', 'phpmailer.png'); // optional name";
try {

View File

@ -26,7 +26,7 @@ try {
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message
//Note that we don't need check the response from this because it will throw an exception if it has trouble
$mail->Send();

View File

@ -49,7 +49,7 @@ $mail->MsgHTML(file_get_contents('contents.html'), dirname(__FILE__));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message, check for errors
if(!$mail->Send()) {

View File

@ -23,7 +23,7 @@ $mail->MsgHTML(file_get_contents('contents.html'), dirname(__FILE__));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message, check for errors
if(!$mail->Send()) {

View File

@ -48,7 +48,7 @@ try {
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message
//Note that we don't need check the response from this because it will throw an exception if it has trouble
$mail->Send();

View File

@ -25,7 +25,7 @@ $mail->MsgHTML(file_get_contents('contents.html'), dirname(__FILE__));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message, check for errors
if(!$mail->Send()) {

View File

@ -47,7 +47,7 @@ $mail->MsgHTML(file_get_contents('contents.html'), dirname(__FILE__));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message, check for errors
if(!$mail->Send()) {

View File

@ -43,7 +43,7 @@ $mail->MsgHTML(file_get_contents('contents.html'), dirname(__FILE__));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
$mail->AddAttachment('images/phpmailer-mini.gif');
$mail->AddAttachment('images/phpmailer_mini.gif');
//Send the message, check for errors
if(!$mail->Send()) {