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 ""

End if
%>

Dani AI

Generated

Short diagnosis and next steps — : the snippet in your ASP uses a third‑party Classic ASP mail component (Persits/AspEmail). Many hosts (including GoDaddy) do not have every third‑party COM component installed, and GoDaddy also expects you to use their SMTP relay or the local SMTP service rather than a hard‑coded IP. was right to mention CDOSYS as a built‑in alternative if Persits isn't available. (aspemail.com)

Troubleshooting checklist (fast, in-order):

  • Confirm your account supports Classic ASP and whether Persits/AspEmail is installed — ask GoDaddy support and report any error text from a test page.
  • Stop using a fixed numeric IP. Try the host recommended for GoDaddy hosted sites (use the local relay or their relay host) and send from an address on your domain (not a third‑party mailbox) so SPF/auth checks succeed. Also add/verify an SPF record for your domain.
  • If Persits is unavailable, switch to CDOSYS (built into Windows servers) or use authenticated SMTP (Office 365 / external SMTP) if you need reliability.
  • Check server error messages or enable simple on‑page error output while testing (don’t leave this enabled on production). (godaddy.com)

Quick CDOSYS example to test sending (Classic ASP / VBScript). Change the smtpserver value to the relay your host specifies, and update From/To addresses before testing:

<%
Set msg = CreateObject("CDO.Message")
msg.Subject = "Test"
msg.From = "webmaster@yourdomain.com"
msg.To = "you@example.com"
msg.TextBody = "Test body"

With msg.Configuration.Fields
  .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay-hosting.secureserver.net"
  .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
  .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0
  .Update
End With

msg.Send
Set msg = Nothing
%>

If that works, change the script to set a Reply‑To to the visitor’s email and keep the From as a domain address (avoids SPF/bounce problems). If CDOSYS also fails, capture the exact error and ask GoDaddy to confirm outbound SMTP policy and whether any components (like Persits) are installed. (learn.microsoft.com)

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.