[Nicolas]
10-13-2010, 02:15 AM
I have successfully made a webmail (like Gmail) except I have one issue. I can send emails out, but can't recieve them like, in an inbox inside of that page. How could I make that work if that user doesn't have another webmail?
Also, how could I censor out profane language with php?
Try it out here. You'll recieve the email in like 20 mins :P
http://kapleenmusic.webfreehosting.net/testfolder/email.htm
Sendmail.php:
<?php
$to = $_REQUEST['email'];
$email = $_REQUEST['eml'] ;
$name = $_REQUEST['id'] ;
$subject = "Message from: $id";
$message = $_REQUEST['message'] ;
$headers = "noreply@YOURWEBSITE.com";
$body = "From: $name \n\n Email: $email \n\n Wesbite: $site \n\n Message: $message";
$sent = mail($to, $subject, $body, $headers) ;
if($sent)
{echo "<script language='JavaScript'>window.location='Success.htm'</script>";}
else
{echo "<script language='JavaScript'>window.location='Error.htm'</script>";}
?>
Also, how could I censor out profane language with php?
Try it out here. You'll recieve the email in like 20 mins :P
http://kapleenmusic.webfreehosting.net/testfolder/email.htm
Sendmail.php:
<?php
$to = $_REQUEST['email'];
$email = $_REQUEST['eml'] ;
$name = $_REQUEST['id'] ;
$subject = "Message from: $id";
$message = $_REQUEST['message'] ;
$headers = "noreply@YOURWEBSITE.com";
$body = "From: $name \n\n Email: $email \n\n Wesbite: $site \n\n Message: $message";
$sent = mail($to, $subject, $body, $headers) ;
if($sent)
{echo "<script language='JavaScript'>window.location='Success.htm'</script>";}
else
{echo "<script language='JavaScript'>window.location='Error.htm'</script>";}
?>