I have an asp page which should send a mail . I am using the below code, but it returns an error in sending
<form action="contactus.asp" method="post">
<div style="float:left; padding-left:10px; font-family:Tahoma; font-size:14px; color:green; width:150px;">Name:</div>
<input type="text" style="width:250px; height:20px;" />
<div style="float:left; padding-left:10px; font-family:Tahoma; font-size:14px; color:green; width:150px;">E-mail Address:</div>
<input type="text" name="from_mail" style="width:250px; height:20px;" />
<div style="float:left; padding-left:10px; font-family:Tahoma; font-size:14px; color:green; width:150px;">Phone Number:</div>
<input type="text" style="width:250px; height:20px;" />
<div style="float:left; padding-left:10px; font-family:Tahoma; font-size:14px; color:green; width:150px;">Message:</div>
<input type="text" name="message" style="width:250px; height:20px;" />
<div style="float:left; padding-left:10px; font-family:Tahoma; font-size:14px; color:green; width:150px;">
<input type="submit" value="Send" style="font-family:Tahoma; font-size:14px; color:green; width:80px; height:20px; font-weight:bold;" />
</form>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.com"'Server port
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>