B
Benny Alexander
Hi,
I have a small form to Email script, to test my server,
With CDONTS.
The Mails is bouncing to bad mail folder, and I do not know the reason why.
anyone can help.
<%@language = VBScript%>
<%Option Explicit%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Dim myMail,msg
If Request.QueryString("msg")<>"" then
Set myMail = server.CreateObject("CDONTS.NewMail")
myMail.To = "(e-mail address removed)"
myMail.Subject = "Test mail"
myMail.Body = Request.QueryString("msg")
myMail.Send
Response.write "Thank you, the mail has been sent"
Set myMail = Nothing
Else
%>
<form name="form1" method="get"
action="<%Request.Servervariables("SCRIPT_NAME")%>">
<p>
<textarea name="msg"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<%End If%>
</body>
</html>
I have a small form to Email script, to test my server,
With CDONTS.
The Mails is bouncing to bad mail folder, and I do not know the reason why.
anyone can help.
<%@language = VBScript%>
<%Option Explicit%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
Dim myMail,msg
If Request.QueryString("msg")<>"" then
Set myMail = server.CreateObject("CDONTS.NewMail")
myMail.To = "(e-mail address removed)"
myMail.Subject = "Test mail"
myMail.Body = Request.QueryString("msg")
myMail.Send
Response.write "Thank you, the mail has been sent"
Set myMail = Nothing
Else
%>
<form name="form1" method="get"
action="<%Request.Servervariables("SCRIPT_NAME")%>">
<p>
<textarea name="msg"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<%End If%>
</body>
</html>