ACTION INSIGHTS : CUTTING THROUGH THE CLUTTER

ASP Mail Form Script on Go Daddy

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

Nothing can be more frustrating than waiting for a form email sent through Go Daddy’s internal form sending server. Sometimes it’s fast and sometimes it’s slow. Below is a script that works like a charm. NOTE: 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. After you finally get your email form working you will want to know how to deal with email spam.

FORM ACTION PART:
(You can name the file anything you want. 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

%>

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

ASP Email Form Sending Script

Virginia Website Development Experts

EXPERIENCE, KNOWLEDGE & EXPERTISE

Visionefx President Ricardo Vidallon has been in the creative business of design advertising, branding, marketing, cable broadcast, animation and the World Wide Web for more than three decades.

Web Maintenance Support Virginia
UNPARALLELED CUSTOMER SERVICE

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

OUR HIGHLY VALUED WEB DESIGN CLIENTELE
Wheeler Real Estate
NCMA TYSONS
Sentara Fitness
VIcom
Cambridge Global
Buffalo Trail Cabins
Wilson Hajek Lawfirm
Emtech Laboratories
Virginia Association Cardio Vascular Pulmonary Rehabilitation
Corner Cafe Portsmouth
Virginia Imports
Southall Landings Marina
Relay Electric LLC
Gastrointestinal Liver Specialists of Tidewater
x
EPM Emergency Planning Management
SCA Consulting Engineers
Gontarek Eyecare
Whitlock Brothers Inc.
SAG Stewart Goodson Advisors
Atlantic Dermatology
Norva Barber Supply
Faith Finder
Chesapeake Bay Helicopters
SMITH Engineering
Archwood Mortgage
Steam Showers 4 Less
Gastroenterology LTD
FH GASKINS
Asthma Allergy Docs
Hofferflow Controls
Perrine Consolidated Companies
Clarke Dolph PLLC
Sykes Bourdon Ahern Levy PC
Military Divorce PC
Virginia Appellate Analysis
Livinius Advisory
A1 Cash Advance
Festavius Group
Commonwealth Water Treatment
TriCities Funeral Services
Worth the Wait Boutique
Softaboard
Artistic Flooring
Seaward Marine Corp.
Bryan Electric
Independence Landscaping
US Army Mantech
PD Systems
Consolidated Steel
Clark Roofing and Siding
Quellum
Tiffany Yachts
Stroud Pence Engineers
Odell Winkfield Roseman Shipp
PACE Collaborative
Peerless Carpet Care
Marathon Resource Management
Pelican Bay Plumbing
Care Connect HR
Pluribus International
Whirlpool Bathtubs
Steam Saunas 4 Less
x
Atlantic Billing
Enspire Energy
Cayman Dolphin House
Farm at Southriver
Kitchen Corps
Norflok Bearings
CITA Shipping
Dr. Grenga
ELS Photography
All Pest Control
Edery Technologies
Minecraft Seed Tours
TTI WASP
ACTION INSIGHTS