• Home
  • Advertising
  • Bing Products and SEO
  • Building Presence on Social Networks
  • Google Products
  • Online Marketing
  • Random Stuff
  • Search Engine Optimization
  • Web Development
  • Website Design

Classic ASP Mail Form Script on GoDaddy

Web Development Oct 17, 2013
Classic ASP to Send Form Mail through GoDaddy Windows Hosting

Classic ASP to Send Form Mail through GoDaddy Windows Hosting 

Nothing can be more frustrating than waiting for a form email using the GoDaddy internal form processing system. Sometimes it’s fast and sometimes it’s slow. Below is an ASP mail-form script that works like a charm.

Also see: ASP Mail Form Script on GoDaddy, Classic ASP help

If this form-mail script works for you, please drop me a thank you note here in my Blog. It is much appreciated.


FORM ACTION PART:

You can name the file anything you want. However, for these purposes, we are calling it aspmailform. asp

FORM SENDING SCRIPT:<%
dim strMsgInfo: strMsgInfo = “”For i = 1 to Request.Form.Count
strMsgInfo = strMsgInfo & Request.Form.Key(i) & ” – ” & Request.Form.Item(i) & “
” & vbCrLf
nextsendUrl=”http://schemas.microsoft.com/cdo/configuration/sendusing”
smtpUrl=”http://schemas.microsoft.com/cdo/configuration/smtpserver”‘ Set the mail server configuration
Set objConfig=CreateObject(“CDO.Configuration”)
objConfig.Fields.Item(sendUrl)=2 ‘ cdoSendUsingPort
objConfig.Fields.Item(smtpUrl)=”relay-hosting.secureserver.net”
objConfig.Fields.Update‘ Create and send the mail
Set objMail=CreateObject(“CDO.Message”)
‘ Use the config object created above
Set objMail.Configuration=objConfig
objMail.From=”ho***********@********me.com”
objMail.ReplyTo=”ho***********@********me.com”
objMail.To=”fi**********@**************om.com”
objMail.Subject=”Web Inquiry”
objMail.HTMLBody=strMsgInfo
if (objMail.Send = 0) then
set objMail = nothing
response. Redirect (“confirmation. asp”)
else
set objMail = nothing
response. Redirect (“error. asp”)
end if%>

 Also see ASP Mail Form Script for Sending Form Mail on Network Solutions.

# Classic ASP to Send Form Mail through GoDaddy Windows Hosting

Share This Post
Facebook Twitter Linkedin Google+
Newer Older

Comments (2)

  1. Anonymous

    12 Mar 2014 - 6:33 pm

    I needed a quick fix for Godaddy email from .NET or .asp. This worked, thanks.

  2. Ricardo Vidallon

    12 Mar 2014 - 6:47 pm

    You are most welcome! Glad this fix worked for you!

Comments are closed.

Archives

  • May 2025 (1)
  • April 2025 (5)
  • March 2025 (1)
  • November 2024 (1)
  • June 2023 (1)
  • August 2021 (1)
  • April 2021 (1)
  • March 2021 (3)
  • February 2021 (1)
  • April 2020 (1)
  • November 2019 (1)
  • May 2019 (6)
  • September 2018 (1)
  • May 2018 (1)
  • April 2018 (1)
  • November 2016 (1)
  • August 2016 (1)
  • April 2016 (1)
  • November 2015 (1)
  • October 2015 (1)
  • September 2015 (2)
  • February 2014 (1)
  • October 2013 (2)
  • September 2013 (1)
  • August 2013 (1)
  • June 2013 (2)
  • May 2013 (1)
  • February 2013 (2)
  • September 2012 (2)
  • August 2012 (3)
  • May 2012 (2)
  • November 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (3)
  • March 2011 (1)
  • December 2010 (2)
  • August 2010 (3)
  • July 2010 (2)
  • October 2009 (2)
  • July 2009 (1)
  • October 2008 (2)
  • August 2008 (3)
  • July 2008 (1)
  • May 2008 (2)
  • April 2008 (1)
  • January 2008 (1)
  • November 2007 (1)
  • September 2007 (1)
  • July 2007 (2)
  • June 2007 (3)
  • January 2007 (2)
  • December 2006 (3)
  • October 2006 (1)
  • September 2006 (2)
  • August 2006 (1)
  • July 2006 (2)
  • June 2006 (2)
  • May 2006 (2)
  • April 2006 (5)
  • March 2006 (2)
  • February 2006 (3)
  • January 2006 (3)
  • December 2005 (3)
  • November 2005 (7)
  • October 2005 (8)
  • September 2005 (5)
  • August 2005 (5)
  • July 2005 (1)
  • February 2005 (3)
  • January 2005 (1)