WWW Archives

ASP Mail Form Script Network Solutions

ASP Mail Form Script for Sending Form-mail on Network Solutions

ASP Mail Form Script Network Solutions – Below is a script that is very easy to implement on your Network Solutions hosted website and allows you to set a confirmation page after a user clicks submit. 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)=”localhost”
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=”name@domainname.com”
objMail.ReplyTo=”anothername@@domainname.com”
objMail.To=”recipient@@domainname.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.

network-solutions-form

About VISIONEFX DESIGN
We are a professional Virginia web design company based in Virginia Beach, VA. We understand that great design elevates web sites above the rest and work to provide you the very best in web design. VISIONEFX provides services to national companies as well as small to medium businesses throughout Virginia and the United States. Our comprehensive website services include; Custom web design, Web development, E-commerce web design, Word Press web design, Word Press plugin customization, Joomla web development, Woo Commerce shopping carts, Virtuemart shopping carts, Open cart development, Intuit API integration, Authorize.net API integration, PayPal API integration, SEO – Search engine optimization and web maintenance services.

VISIONEFX also has a Google 5 Star Review posted on Google My Business pages.

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. Take a moment and read our live Google Reviews.

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'.

ACTION INSIGHTS