/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
################################################################ # Adicionar este código dentro da função __trigger() do evento # ################################################################ # Pega os campos vindo via POST $fields = $_POST['fields']; # Monta o corpo da mensagem $message = "Nome: " .$fields['nome'] ." "; $message .= "Email: " .$fields['email'] ." "; $message .= "Empresa: " .$fields['empresa'] ." "; $message .= "Telefone: " .$fields['telefone']." "; $message .= "Mensagem: " .$fields['mensagem']." "; # Array com as configurações do email $email['from_name'] = $fields['nome']; $email['subject'] = 'Assunto'; ## Send it! if (!General::sendEmail($email['to_email'], $email['from_email'], $email['from_name'], $email['subject'], $email['message'], $email['headers'])){ }