@@ 8054-8059 (lines=6) @@ | ||
8051 | // Attachment ... |
|
8052 | if (!empty($data_file)) { |
|
8053 | $o = 0; |
|
8054 | foreach ($data_file as $file_attach) { |
|
8055 | if (!empty($file_attach['path']) && !empty($file_attach['filename'])) { |
|
8056 | $mail->AddAttachment($file_attach['path'], $file_attach['filename']); |
|
8057 | } |
|
8058 | $o++; |
|
8059 | } |
|
8060 | } elseif (is_array($_FILES)) { |
|
8061 | $data_file = $_FILES; |
|
8062 | $o = 0; |
|
@@ 8063-8068 (lines=6) @@ | ||
8060 | } elseif (is_array($_FILES)) { |
|
8061 | $data_file = $_FILES; |
|
8062 | $o = 0; |
|
8063 | foreach ($data_file as $file_attach) { |
|
8064 | if (!empty($file_attach['tmp_name']) && !empty($file_attach['name'])) { |
|
8065 | $mail->AddAttachment($file_attach['tmp_name'], $file_attach['name']); |
|
8066 | } |
|
8067 | $o++; |
|
8068 | } |
|
8069 | } |
|
8070 | ||
8071 | // Only valid addresses are accepted. |