Email Admin

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

5 replies · 922 views · started 19 years ago · 1 min read

3 participants
Guest #1

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(" Thank You $name, your Enquiry has been sent to $wap_title "); print ("

<a href="http://site">CONTINUE</a> "); 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"/>

</card> </wml>
Attachments: emailadmin.php
Guest #2

Someone must know whats needed to make it work

nclemale36 Lead · 537 posts #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(" Thank You $name, your Enquiry has been sent to $wap_title "); print ("

<a href="http://site">CONTINUE</a> "); 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"/>

</card> </wml>

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

need4speed Junior · 24 posts #6
<?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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close