|
<html>
<head>
<title>Send Mail Demo-2</title>
<meta http-equiv="pragma" content="no-cache">
</head>
<body>
It is now <%= [ ns_fmttime [ns_time] "%A, %B %e, %Y at %r" ] %>.
<p>
<%
set_the_usual_form_variables
# sets to, from, subject, body
ns_adp_puts "TO: $to<br>"
ns_adp_puts "FROM: $from<br>"
ns_adp_puts "SUBJECT: $subject<br>"
ns_adp_puts "BODY: <br>$body<p>"
ns_sendmail $to $from $subject $body
ns_adp_puts "Message sent!<p>"
%>
<p>
<p><hr><p>
</body>
</html>
|