Skip to content
(757) 619-6456 Free Quote
VISIONEFX
Database & Software Development

Asp Mail Form Script on GoDaddy.

MAIL FORM SCRIPT IN CLASSIC ASP TO SEND FORM MAIL ON GODADDY WINDOWS HOSTING

ASP Mail Form Script on GoDaddy – Nothing can be more frustrating than waiting for a form email test. This is primarily an email from a form sent through GoDaddy’s internal form-sending server. Because it’s sometimes fast and sometimes slow, there is no way to tell whether the mail server is processing your email. Of course, you could scour the server logs to find the mail timestamp. However, this is very time-consuming.

FORM SCRIPT

ASP Mail Form Script on GoDaddy – Below is a script that works like a charm. On the other hand, if you plan to cut and paste from this web page, first open NOTEPAD and paste it there to strip out all the HTML junk; moreover, if you have a web editor like Dreamweaver, use that instead. In otherwords, you want to be sure your code is formatted correctly.

FORM ACTION PART:
You can name the file anything you want. However, for these purposes, we are referring to it as aspmailform. asp
Also find it on GitHub here: https://github.com/rickvidallon/aspmailform/blob/main/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, seven days a week. So you cannot afford to have your website forms be down or offline for even one minute. Furthermore, a business cannot afford to wait for a website to be fixed or repaired. In particular, if you are a VISIONEFX web maintenance client, don’t worry about things like that!

ABOUT VISIONEFX

Our experienced web developers know how to program. Above all, we understand custom coding for mail scripts. Additionally, we develop custom mail form applications. Our web experts will also analyze and plan a customized solution tailored to your business needs.

GOOGLE REVIEWS

Please 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 work email, you will want to know how to deal with spam.

Also, see
Why Your Website’s Leads Are Landing in Spam
GoDaddy Windows Hosting
ASP Mail Form Script on Network Solutions
ASP Mail Form Script, Form-mail, Exchange Server
Check Your Website Functionality
What Is The Best Email Marketing System?

Tell us all about your project.

Get a Free Quote
Call Us Free Quote