Fix wrong filename for image file - thanks to @mauglee
This commit is contained in:
parent
bd69132c66
commit
d852751809
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue