Database and Software Development

ASP Mail Form Script on Go Daddy

Mail form script in classic ASP to send form mail through Go Daddy Windows hosting

ASP Mail Form Script on Go Daddy | Nothing can be more frustrating than waiting for form email test. Especially an email from a form sent through Go Daddy’s internal form sending server. Because sometimes it’s fast and sometimes it’s slow. On the other hand there is no way to tell if the mail server is actually processing your email. Of course you could scour the server logs in order to find the mail time stamp. However this is very time consuming.

FORM SCRIPT

ASP Mail Form Script on Go Daddy | Below is a script that works like a charm. However if you plan on cutting and pasting from this web page, first open NOTE PAD and paste from this page to strip out all the HTML junk. On the other hand if you have a web editor such as Dreamweaver, use that instead.

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
next

sendUrl=”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=”hopethisworks@domainname.com”
objMail.ReplyTo=”hopethisworks@domainname.com”
objMail.To=”finallyworks@mydomainname.com.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

%>

ASP Email Form Sending Script

BELOW ARE COMMENT NOTES ABOUT THE FIELDS IN THE SCRIPT – PLEASE READ THESE.

LET US SET IT UP FOR YOU

Your business website is open for inquiries 24 hours a day, 7 days a week. Therefore you cannot afford your website forms to be down or offline for one minute. Furthermore a business does not have time to wait for a website issue to be fixed. In particular if you are a VISIONEFX web maintenance client, you don’t have worry about things like that!

ABOUT VISIONEFX

VISIONEFX provides services to small business owners throughout the United States. Our services include Word Press, Drupal, Moodle and Joomla development. Additionally we also provide expert SEO and web maintenance services. 

Our experienced web developers know programming. Because you need some one who understands custom coding mail scripts. Additionally we develop custom mail form applications. In like manner our web experts will analyze and plan with you a custom solution for your business needs.

GOOGLE REVIEWS

Read what our customers have to say about VISIONEFX on Google Reviews. For more information call: (757) 619-6456 or email info@visionefx.net.

After you finally get your email form working you will want to know how to deal with email spam.

Virginia Website Development Experts

REPUTATION : WE VALUE OUR CLIENTS

Reputation Is Everything. We make sure customer websites are running like a finely tuned machine to help them beat the competition and excel online. Please take a moment and read our live Google Reviews.

Web Maintenance Support Virginia
UNPARALLELED CUSTOMER SERVICE

Visionefx knows it's essential to keep your Website, contact forms, and database humming along 24/7. We support and maintains your business web site as your very own 'personal web master.'

ACTION INSIGHTS