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 straightforward script to implement on your Network Solutions-hosted website. Specifcally, it 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. Finally, after your email form works, learn more about dealing 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. Specifcally, we understand that great design elevates websites above the rest. Therefore, we work to provide you with the very best in web design.

VISIONEFX provides services to small to medium businesses throughout Virginia and the USA. Our services include Custom web design, Web development, E-commerce web design, WordPress web design, WordPress plugin customization, and Joomla web development.

Moreover, our eCommerce services include WooCommerce shopping carts, Virtuemart shopping carts, and Open cart development. Above all, we also provide API integrations for Intuit, Authorize.net, PayPal API, and many others.

On the other hand, if you need SEO, we are experts in Search engine optimization and web maintenance services.

VISIONEFX also has Top Reviews posted on Google My Business pages.

Also, see:
ASP MAIL FORM SCRIPT ON GO DADDY

Click For Free Quote!
Virginia Website Development Experts

REPUTATION : WE VALUE OUR CLIENTS

Reputation Is Everything. We make sure customer websites run 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 maintain your business website as your very own 'personal webmaster.'