| | |
| | | $form = []; |
| | | foreach ($form_config['fields'] as $field_name => $config) { |
| | | // Skip file upload fields |
| | | if (in_array($config['type'], ['upload'])) { |
| | | if ($config['type'] == 'upload') { |
| | | continue; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | // Send the email |
| | | $email_sent = JVB()->email()->sendEmail( |
| | | return JVB()->email()->sendEmail( |
| | | $to, |
| | | $subject, |
| | | $body, |
| | |
| | | $headers, |
| | | $attachments |
| | | ); |
| | | |
| | | return $email_sent; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | $type = $field_config['type'] ?? 'text'; |
| | | $type = $field_config['subType']?:$type; |
| | | $type = $field_config['subType'] ?? $type; |
| | | |
| | | switch ($type) { |
| | | case 'phone': |