Skip to content

Commit

Permalink
Fix wrong filename for image file - thanks to @mauglee
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Jun 6, 2013
1 parent bd69132 commit d852751
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/code_generator.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion examples/exceptions.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/gmail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/mail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
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 @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/sendmail.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/smtp.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
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 @@ -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()) {
Expand Down

0 comments on commit d852751

Please sign in to comment.