Guest User

Untitled

a guest
Oct 7th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2. define('WP_USE_THEMES', true);
  3. require('homologacao/wp-blog-header.php');
  4.  
  5.  
  6. //Dados do Formulario
  7. $contatoNome = $_REQUEST['nome'];
  8. $contatoEmail = $_REQUEST['email'];
  9. $contatoMsg = $_REQUEST['msg'];
  10.  
  11. // From email address
  12. $fromemail = "design.adrianoth@gmail.com";
  13.  
  14. // To email address
  15. //$toemail = "renancamm@gmail.com";
  16. $toemail = "design.adrianoth@gmail.com";
  17.  
  18.  
  19. // The subject
  20. $subject = "Livro Design Thinking | $contatoNome";
  21.  
  22. // The message
  23. $message = "Nome: $contatoNome | E-mail: $contatoEmail | Mensagem: $contatoMsg";
  24.  
  25.  
  26.  
  27. // The Header
  28. $headers  = 'MIME-Version: 1.0' . "\r\n";
  29. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  30. $headers .= "From: $fromemail" . "\r\n";
  31.  
  32. wp_mail($toemail, $subject, $message, $headers);
  33.  
  34. ?>
Add Comment
Please, Sign In to add comment