Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('WP_USE_THEMES', true);
- require('homologacao/wp-blog-header.php');
- //Dados do Formulario
- $contatoNome = $_REQUEST['nome'];
- $contatoEmail = $_REQUEST['email'];
- $contatoMsg = $_REQUEST['msg'];
- // From email address
- $fromemail = "design.adrianoth@gmail.com";
- // To email address
- //$toemail = "renancamm@gmail.com";
- $toemail = "design.adrianoth@gmail.com";
- // The subject
- $subject = "Livro Design Thinking | $contatoNome";
- // The message
- $message = "Nome: $contatoNome | E-mail: $contatoEmail | Mensagem: $contatoMsg";
- // The Header
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- $headers .= "From: $fromemail" . "\r\n";
- wp_mail($toemail, $subject, $message, $headers);
- ?>
Add Comment
Please, Sign In to add comment