
Originally Posted by
iskoLares
if maggamit ka CDONTS or CDOSYS.. dapat supported na sa imong server/host....
pede mn ka kagamit simple ASPMail Script... pero... dapat ang component nakainstall jd lagi.. hjeehhe
Forminfo.asp
<% @LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = "1&1 Test"
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrelay.perfora.net" ' The mail server you have to use with Asp Mail
Mail.AddRecipient "ABCDE Company", "hello@justonedomain.com"
Mail.Subject = "Website - Info Request"
Mail.BodyText = Request.Form("info")
if Mail.SendMail then
Response.Write "Your mail has already been sent..."
else
Response.Write "Mail send failure. Error was " & Mail.Response
end if
%>
<body>
<p>Thank You!!<br>
</body>
</html>
imohang HTML page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ASP Mail Test page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="">
<table width="100%" border="0" align="center">
<tr class="medium">
<td width="54%" align="center" valign="top">
<form onSubmit="return ValidateForm()" method="post" action="forminfo.asp">
Email Address:: <input name="email" type="text" id="email" size="41"></p>
Comments:: <textarea name="info" cols="35" rows="10"></textarea></p>
<input class="fancybut" type="submit" name="Submit" value="Submit Form">
<input class="fancybut" type="reset" name="Submit2" value="Reset Form"></p>
</form></td>
<td width="16%" align="right" valign="top"></td>
</tr>
</table>
</body>
</html>