Ir para conteúdo
Fórum Script Brasil

»»Luk@S««

Membros
  • Total de itens

    88
  • Registro em

  • Última visita

Posts postados por »»Luk@S««

  1. tente colocar a "\" quando tiver aspas

    <?

    if($acao=='m') {

    /* Destinatário */

    $to  = "guilherme@netsoft.eti.br";

    /* assunto */

    $subject = "E-Mail enviado de Clientes que visitaram a página na Inter net !!!";

    /* mensagem */

    $message = '

      <html>

      <head>

      <title>Eu sou: $nome !!!</title>

      </head>

      <body>

      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class="txt1">

      <tr>

        <th>Menu Nome é: <strong>$nome</strong>,</th>

      </tr>

      <tr>

        <td>Sou de <strong>$cidade</strong> do Estado de <strong>$estado</strong>.</td>

      </tr>

      </table>

      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class="txt1">

      <tr>

        <td width=\"50%\">O que quero saber é o seguinte:</td>

        <td width=\"50%\"><strong>$desejo</strong></td>

      </tr>

      </table>

      </body>

      </html>';

    /* Atenção se você pretende inserir numa variável uma mensagem html mais

    complexa do que essa sem precisar escapar os carateres

    necessários pode ser feito o uso da sintaxe heredoc, consulte tipos-string-sintaxe-heredoc */

    /* Para enviar email HTML, você precisa definir o header Content-type. */

    $headers  = "MIME-Version: 1.0\r\n";

    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

    /* headers adicionais */

    $headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n";

    $headers .= "From: Birthday Reminder <birthday@example.com>\r\n";

    $headers .= "Cc: birthdayarchive@example.com\r\n";

    $headers .= "Bcc: guilherme@netsoft.eti.br\r\n";

    /* Enviar o email */

    mail($to, $subject, $message, $headers);

    echo"<script language=javascript>alert('A sua mensagem foi enviada com sucesso !!!')</script>";

    echo"<script language=javascript>location.href=''</script>";

    }

    ?>

  2. tente assim:

    <?php

    $recipient = "edgarlucas@hotmail.com";

    $subject = "Formulário de Contato";

    $msg = "Nome: $nome \n\nE-mail: $email \n\nMensagem: $cont";

    $mailheaders = "From: $nome";

    mail($recipient, $subject, $msg, $mailheaders);

    ?>

    falow

×
×
  • Criar Novo...