Jump to content
Fórum Script Brasil
  • 0

Dúvida formulário PHP

Rodrigo Louzada


Fiz um formulário para um site, só que quando a pessoa preenche o formulário e envia, dá esse erro:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:\inetpub\vhosts\infinitycustoms.com.br\httpdocs\emailform.php on line 11

e o meu script está assim:



3-$to = "[email protected]";

4-$subject = "Contato Cliente";

5-$message = "Nome do Cliente: " . $_POST['nome'] . "\r\n" .

6-"Email: " . $_POST['email'] . "\r\n" .

7-"Mensagem: " . $_POST['mensagem'] . "\r\n" . "\r\n" .

8-$from = $_POST['email'];

9-$headers = "From: $from" . "\r\n";

10-$headers = "Bcc: [email protected]" . "\r\n";



O nome do arquivo é emailform.php

Ainda estou aprendendo a programar e não sei o que pode estar errado, alguém pode me explicar qual o erro ??


Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...