mail.php PHP: <?phpinclude "generator.class.php";if (isset($_POST['email']) && isset($_POST['submit'])){ $gen->id(6); $gen->mail($_POST['email'],'http://'.$SERVER_NAME.'/mjk/sub/register.php?id='.$gen->id.'');}if(isset($_POST['submit']) && empty($_POST['email'])){ $gen->alert('Email jangan dikosongi');}?><div style="font-family:trebuchet ms;" ><div id="forms">Email Registrasi </div><div id="biasa"><form name="mail" method="post" action="page.php?menu=mail"> <table border="0" cellspacing="0" cellpadding="3"> <tr> <td>Send email to</td> <td>:</td> <td><input type="text" name="email" size="30"/></td> <td align="center"><input name="submit" type="submit" value="Kirim" /></td> </tr></table></form></div></div><hr> generator.class.php PHP: class generator extends MYSQL{ function mail ($receiver, $url){ require_once("class.mail.php"); $mail = new mailsend(); $mail->to="".$receiver.""; $mail->subject="Form Registrasi Subdomain"; $mail->message="".$url." Klik link disamping untuk melanjutkan registrasi secara online"; $mail->header='From: [email]subdin_pde@mojokertokab.go.id[/email]' . "\r\n" . 'Reply-To:subdin_pde@mojokertokab.go.id' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $mail->send(); }}<hr> class.mail.php PHP: <?phpclass mailsend { var $to; var $subject ; var $message ; var $header ; function send(){ mail($this->to, $this->subject, $this->message, $this->header); }}?>
Why dont you try just this one line script PHP: mail('you@yourdomain.com', 'My Subject', 'My Message'); And see if it works. If you are using your local computer you would need an SMTP server to relay the email
There could be 2 reasons then 1. Emails are in your spam folder 2. Else either the mail server is not running or it needs a username password before you can send an email.
Ooowwhhh,,,,, maybe mail server... So... can u help me ? Would u like to give me your success PHP Mail Script ... ??? Please ... :happy: :wacky:
its same as the one I have give you earlier and there is nothing that needs to be changed apart from your email address and it should work.