@@ 7988-7993 (lines=6) @@ | ||
7985 | // Attachment ... |
|
7986 | if (!empty($data_file)) { |
|
7987 | $o = 0; |
|
7988 | foreach ($data_file as $file_attach) { |
|
7989 | if (!empty($file_attach['path']) && !empty($file_attach['filename'])) { |
|
7990 | $mail->AddAttachment($file_attach['path'], $file_attach['filename']); |
|
7991 | } |
|
7992 | $o++; |
|
7993 | } |
|
7994 | } elseif (is_array($_FILES)) { |
|
7995 | $data_file = $_FILES; |
|
7996 | $o = 0; |
|
@@ 7997-8002 (lines=6) @@ | ||
7994 | } elseif (is_array($_FILES)) { |
|
7995 | $data_file = $_FILES; |
|
7996 | $o = 0; |
|
7997 | foreach ($data_file as $file_attach) { |
|
7998 | if (!empty($file_attach['tmp_name']) && !empty($file_attach['name'])) { |
|
7999 | $mail->AddAttachment($file_attach['tmp_name'], $file_attach['name']); |
|
8000 | } |
|
8001 | $o++; |
|
8002 | } |
|
8003 | } |
|
8004 | ||
8005 | // Only valid addresses are accepted. |