Email Admin

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

    Email Admin

    Can someone please tell me what i need to add to send the email, everything is there but the submit/send option ....Thank You


    <?php


    include("core.php");
    include("config.php");


    header("Content-type: text/html; charset=ISO-8859-1");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo "<head>";
    echo "<title>$stitle</title>";
    echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
    echo "</head>";

    echo "<body>";

    $wap_title=""; // Your Sites Name
    $to = ""; // Your Email Address
    if ($pass == "")
    {
    $title="Contact $wap_title";
    }
    else
    {
    $title="Thank You";
    $msg .= "From:\n$name\n$email\n\nMessage:\n$message\n" ;
    $subject = "WAP Enquiry\n";
    $mailheaders = "From: $name<$email> \n";
    $mailheaders .= "Reply-To: $name<$email>\n\n";
    mail($to, $subject, $msg, $mailheaders);
    print("<card id=\"thanks\" title= \"$title\" >");
    print("<p align=\"center\">Thank You $name,
    your Enquiry has been sent to $wap_title</p>");
    print ("

    <a href=\"http://site\">CONTINUE</a></p>");
    print("</card>");
    }
    ?>
    <card id="contact" title="<? echo $title ?>">
    <do type="accept" label="send">
    <go method="post" href="<? echo "$PHP_SELF"; ?>">
    <postfield name="name" value="$name"/>
    <postfield name="email" value="$email"/>
    <postfield name="message" value="$message"/>
    <postfield name="pass" value="1"/>
    </go>
    </do>



    Name
    <input title="name" name="name"/>

    Email
    <input title="email" name="email"/>

    Message
    <input title="message" name="message"/>

    </p>
    </card>
    </wml>
    Attached Files

    #2
    Someone must know whats needed to make it work

    Comment


      #3
      Can someone please tell me what i need to add to send the email, everything is there but the submit/send option ....Thank You
      <?php
      include("core.php");
      include("config.php");
      header("Content-type: text/html; charset=ISO-8859-1");
      echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
      echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
      echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

      echo "<head>";
      echo "<title>$stitle</title>";
      echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
      echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
      echo "</head>";

      echo "<body>";

      $wap_title=""; // Your Sites Name
      $to = ""; // Your Email Address
      if ($pass == "")
      {
      $title="Contact $wap_title";
      }
      else
      {
      $title="Thank You";
      $msg .= "From:\n$name\n$email\n\nMessage:\n$message\n" ;
      $subject = "WAP Enquiry\n";
      $mailheaders = "From: $name<$email> \n";
      $mailheaders .= "Reply-To: $name<$email>\n\n";
      mail($to, $subject, $msg, $mailheaders);
      print("<card id=\"thanks\" title= \"$title\" >");
      print("<p align=\"center\">Thank You $name,
      your Enquiry has been sent to $wap_title</p>");
      print ("

      <a href=\"http://site\">CONTINUE</a></p>");
      print("</card>");
      }
      ?>
      <card id="contact" title="<? echo $title ?>">
      <do type="accept" label="send">
      <go method="post" href="<? echo "$PHP_SELF"; ?>">
      <postfield name="name" value="$name"/>
      <postfield name="email" value="$email"/>
      <postfield name="message" value="$message"/>
      <postfield name="pass" value="1"/>
      </go>
      </do>



      Name
      <input title="name" name="name"/>

      Email
      <input title="email" name="email"/>

      Message
      <input title="message" name="message"/>

      </p>
      </card>
      </wml>[/b]

      hmmmm the headers in xhtml and the footers in wml . lol . wonder if this will work with some work
      Wapchat4u


      Topsites4u

      Comment


        #4
        how I can add more options???

        I wont add nickname, gender, hobby and from..any1 can help 4 add this???
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #5
          how I add in the file core.php and config if I not use to lavalair and community???
          if like my post click:

          http://coding-talk.com/images/totall...ost_thanks.gif

          Comment


            #6
            Code:
            <?php
            
            
            include("core.php");
            include("config.php");
            
            
            header("Content-type: text/vnd.wap.wml");
            header("Cache-Control: no-store, no-cache, must-revalidate");
            echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
            echo "<wml>";
            
            $wap_title="CeLLAdda.com"; // Your Sites Name
            $to = "celladda@gmail.com"; // Your Email Address
            if ($pass == "")
            {
                $title="Contact $wap_title";
                }
            else 
            {    
                $title="Thank You";
                $msg .= "From:\n$name\n$email\n\nMessage:\n$message\n";
                $subject = "WAP Enquiry\n";
                $mailheaders = "From: $name<$email> \n";
                $mailheaders .= "Reply-To: $name<$email>\n\n";
                mail($to, $subject, $msg, $mailheaders);    
                print("<card id=\"thanks\" title= \"$title\" >");
                
                print("<p align=\"center\">Thank You $name,
            Your Enquiry has been sent to Site Admin</p>");
                    print (" <p align=\"center\"><a href=\"http://CeLLAdda.com\">Home</a></p>");
                print("</card>");  
             }      
            ?>
            
            <card id="contact" title="<? echo $title ?>">
            <p align="center">
            [b]Contact Site Admin[/b]
            
            
            Name
            <input name="name" format="*x" maxlength="20"/>
            
            Email
            <input name="email" format="*x" maxlength="20"/>
            
            Message
            <input name="message" format="*x" maxlength="500"/>
            
            Name 
            
            
            </p>
            <p align="center">
            <anchor>Send<go href="emailadmin.php" method="post">
              <postfield name="name" value="$(name)"/>
              <postfield name="email" value="$(email)"/>
              <postfield name="message" value="$(message)"/>
              <postfield name="pass" value="1"/>
              </go></anchor>
              </p>
            
            </card>
            </wml>

            Plz chk This Edited Code ..maybe its workd fine ..enjoy

            Comment

            Working...
            X