if
($BeenSubmitted) { if ($mailto) { if (mail($mailto, $subject, $body, "From:
$mail_from")) { print ("<b><center><font color = blue>Your
Email has been successfully sent!</font></center></b>\n");
} else { print ("<b><center><font color = red>Your Email
was not successfully sent due to a system error!</font></center></b>\n");
} } else { print ("<b><center><font color = red>Please
enter the recipient's mail to address!</font></center></b>\n"); } } ?> <form
action="email.php" method=post> Recipient's Email Address: <input
type=text name="mailto", size="50"><br> Your Email
Address: <input type=text name="mail_from", size="50"><br> Email
Subject: <input type=text name="subject", size="80"><br> Email
Body: <textarea name="body" rows="10" cols="50"> </textarea><p> <input
type=hidden name="BeenSubmitted" value=true> <input type=submit
name="submit" value="Send!"> </form>
if
($BeenSubmitted) { if ($mailto) { if (mail($mailto, $subject, $body, "From:
$mail_from")) { print ("<b><center><font color = blue>Your
Email has been successfully sent!</font></center></b>\n");
} else { print ("<b><center><font color = red>Your Email
was not successfully sent due to a system error!</font></center></b>\n");
} } else { print ("<b><center><font color = red>Please
enter the recipient's mail to address!</font></center></b>\n"); } }
if
($BeenSubmitted) { if
($mailto) { if (mail($mailto, $subject, $body,
"From: $mail_from")) { print ("<b><center><font
color = blue>Your Email has been successfully sent!</font></center></b>\n");
} else { print ("<b><center><font color = red>Your Email
was not successfully sent due to a system error!</font></center></b>\n");
} } else { print ("<b><center><font
color = red>Please enter the recipient's mail to address!</font></center></b>\n"); } }
if
(mail($mailto, $subject, $body, "From: $mail_from")) { print ("<b><center><font
color = blue>Your Email has been successfully sent!</font></center></b>\n");
} else { print ("<b><center><font color = red>Your Email
was not successfully sent due to a system error!</font></center></b>\n");
}
Ногоон хэсэг нь цэнхэрээ дотроо агуулах ба гол нєхцєл
нь шаардлагатай цонхнууд бєглєгдсєн эсэхийг шалгана. Хэрвээ бєглєгдєєгvй нєхцєлд
Please enter the
recipient's mail to address! гэсэн зурвас vзvvлнэ.
if ($BeenSubmitted)
{ if ($mailto)
{ if (mail($mailto, $subject, $body, "From:
$mail_from")) { print ("<b><center><font color = blue>Your
Email has been successfully sent!</font></center></b>\n");
} else { print ("<b><center><font color = red>Your Email
was not successfully sent due to a system error!</font></center></b>\n");
} } else { print ("<b><center><font
color = red>Please enter the recipient's mail to address!</font></center></b>\n"); } }