any one give solution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KK

    any one give solution

    <?php
    $to="iddkarthis @gmail.com";
    $from="kk";
    $sub="hi";
    $mess="any one help";
    error_reporting (E_ERROR | E_WARNING | E_PARSE);
    mail($to, $sub, $mess, $from);


    ?>
    this my email script but i got error "server failed" at line 7

  • UKuser

    #2
    Re: any one give solution

    On 16 May, 07:37, KK <iddkart...@gma il.comwrote:
    <?php
    $to="iddkart... @gmail.com";
    $from="kk";
    $sub="hi";
    $mess="any one help";
    error_reporting (E_ERROR | E_WARNING | E_PARSE);
    mail($to, $sub, $mess, $from);
    >
    ?>
    this my email script but i got error "server failed" at line 7
    The From isnt a valid email address sender - try changing kk to your
    email address.

    Comment

    • Alvaro G. Vicario

      #3
      Re: any one give solution

      *** KK escribió/wrote (15 May 2007 23:37:55 -0700):
      $to="iddkarthis @gmail.com";
      $from="kk";
      $sub="hi";
      $mess="any one help";
      error_reporting (E_ERROR | E_WARNING | E_PARSE);
      mail($to, $sub, $mess, $from);
      This is the function syntax:

      bool mail ( string to, string subject, string message [, string
      additional_head ers [, string additional_para meters]] )


      In the fourth parameter, additional_head ers, you can provide additional
      headers in the form:

      "Header-Name: Header value\nAnother-Header: Another value"

      "kk" is not a valid header.

      --
      -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
      ++ Mi sitio sobre programación web: http://bits.demogracia.com
      +- Mi web de humor con rayos UVA: http://www.demogracia.com
      --

      Comment

      Working...