How Do I Include My Email In This Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How Do I Include My Email In This Code

    i want to include my email address in this code as the FROM:.
    how do put the code in so that when ppl receive the confirmation email my email is shown?
    Code:
    else{
    $getid = mysql_query("SELECT * FROM 4wap_top where name = '$name' ");
    while($get = mysql_fetch_array($getid)){
    $id = $get['id'];
    $sendto = $get['mail'];
    $subject = "4WAP Toplist link\n";   
    $message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
    mail($sendto, $subject, $message);
    }
    
    print"Registration Successful! 
    
    please place a link from your site to:
    
    ".$yoursite."?id=".$id."
    to increase your rating.
    
    This link has also been emailed to:
    ".$sendto."
    
    
    <a href=\"index.php\">Main Menu</a>
    ";
    = = = = =
    The more you laugh...the longer you live.
    Read more jokes at
    http://fun-files.co.cc

    #2
    Code:
    else{
    $getid = mysql_query("SELECT * FROM 4wap_top where name = &#39;$name&#39; ");
    while($get = mysql_fetch_array($getid)){
    $id = $get[&#39;id&#39;];
    $sendto = $get[&#39;mail&#39;];
    $subject = "4WAP Toplist link\n";   
    $message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
    mail($sendto, $subject, $message, "From: [email]StretchMaster@email.net[/email]");
    }
    
    print"Registration Successful! 
    
    please place a link from your site to:
    
    ".$yoursite."?id=".$id."
    to increase your rating.
    
    This link has also been emailed to:
    ".$sendto."
    
    
    <a href=\"index.php\">Main Menu</a>
    ";
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      thanks, that worked. i like the email addy you used for me

      the code is actualy so simple.

      this is what i tried but didnot work
      Code:
      <?
      $id = $get[&#39;id&#39;];
      $sendto = $get[&#39;mail&#39;];
      $subject = "4WAP Toplist link\n";   
      $from = "mail@4wapfreaks.net";
      $message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
      mail($sendto, $subject, $from, $message);
      ?>
      = = = = =
      The more you laugh...the longer you live.
      Read more jokes at
      http://fun-files.co.cc

      Comment

      Working...
      X