Skip to content

Commit

Permalink
Example cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Jan 5, 2017
1 parent c6713cd commit a39c742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/send_file_upload.phps
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (array_key_exists('userfile', $_FILES)) {
$mail->setFrom('[email protected]', 'First Last');
$mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer file sender';
$mail->msgHTML("My message body");
$mail->Body = 'My message body';
// Attach the uploaded file
$mail->addAttachment($uploadfile, 'My uploaded file');
if (!$mail->send()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/send_multiple_file_upload.phps
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (array_key_exists('userfile', $_FILES)) {
$mail->setFrom('[email protected]', 'First Last');
$mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer file sender';
$mail->msgHTML('My message body');
$mail->Body = 'My message body';
//Attach multiple files one by one
for ($ct = 0; $ct < count($_FILES['userfile']['tmp_name']); $ct++) {
$uploadfile = tempnam(sys_get_temp_dir(), sha1($_FILES['userfile']['name'][$ct]));
Expand Down

0 comments on commit a39c742

Please sign in to comment.