I have a request form that calls an asp.net file to email request to my account.
My web hosting is on GoDaddy.com. Could someone help me find why it does not work? It worked on my old hosting.

Part of my form:

<!-- ////////////////////// FORM ///////////////////////////////////-->
<form action="aspmail.asp" method="post" name="frmRFQ" id="frmRFQ" 
onsubmit="MM_validateForm('txtcompany','','R','txtemail','','R','txtphone','','R'); return document.MM_returnValue">

... 

  <tr>
    <td width="304" valign="top" class="style6">Condition</td>
    <td width="446" align="center" valign="top" class="style3"><input name="condition" type="text" id="txtcondition" size="50"></td>
  </tr>
  <tr>
    <td width="304" valign="top" class="style6">&nbsp;</td>
    <td width="446" align="center" valign="top" class="style3"><input name="Reset" type="reset" id="Reset" value="Reset">&nbsp;&nbsp;<input type="submit" NAME="Send" VALUE="Request info"></td>  

...

</form>
<!-- ////////////////////// ENDING FORM ///////////////////////////////////-->


Part of my ASP file:

<%

strHost = "69.25.72.1" /* this may be incorrect does someone know what is the host IP for Godaddy? */
strRecepient = "me@yahoo.com"
strRecepient2 = "me2@yahoo.com"

If Request("Send") <> "" Then

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = strHost

Mail.From = Request("email") 
' & " " & Request("name")
Mail.AddAddress strRecepient
Mail.AddBCC strRecepient2

' message subject
Mail.Subject = "Request for Info"
' message body
Mail.Body = "Request for Info: " & vbcrlf & "==================================================================" & vbcrlf & "Requested Date: " & Now() & vbcrlf & vbcrlf 

....

  Mail.Send
  Response.Redirect "http://mysite.com/thank-you.html"

End if
%>

Firstly, "aspmail.asp: is not ASP.Net

Your form calls "Persits.MailSender". Check to see if your web host provides that specific service. Otherwise you may want to create a form that uses the CDOSYS already available on Windows Servers.

Send mail using CDOSYS

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.