ASP Contact Form

Posted on 2009-07-07
Last Modified: 2013-11-09
Can someone please help me create an ASP contact form that functions.  I have tried several samples and get get one to work.
Question by:medpipes

Expert Comment

ID: 24796592
Ok, I can, but I need a little more info. What are you trying to do with the form? What is not working for you?
LVL 29

Accepted Solution

coreybryant earned 168 total points
ID: 24796756
There are a few components like JMail - but you need to let us know which one you are trying to work with.  You also need to check if SMTP authentication is needed or can be bypassed.

Assisted Solution

djpazza earned 166 total points
ID: 24798831
enter you smtp server address ( and change the from and to fields and you should see the attached example send an email.

Dim ObjSendMail

Set ObjSendMail = CreateObject("CDO.Message")

'This section provides the configuration information for the remote SMTP server.

ObjSendMail.Configuration.Fields.Item ("") = 2 'Send the message using the network (SMTP over the network).

ObjSendMail.Configuration.Fields.Item ("") =""

ObjSendMail.Configuration.Fields.Item ("") = 25

ObjSendMail.Configuration.Fields.Item ("") = False 'Use SSL for the connection (True or False)

ObjSendMail.Configuration.Fields.Item ("") = 60


'End remote SMTP server configuration section==

ObjSendMail.To = ""

ObjSendMail.Subject = "this is the subject"

ObjSendMail.From = ""

' send a text email

'ObjSendMail.HTMLBody = "this is the body"

ObjSendMail.TextBody = "this is the body"


Set ObjSendMail = Nothing


Open in new window


Assisted Solution

harris9999 earned 166 total points
ID: 24821929
Lot of useful information and examples here:

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating TABS in ASP Classic NOT using DIV 22 63
SMS AddAttachment Protocol Error Classic ASP 10 36
API not working 33 56
Send to Print Preview database record with one click 3 48
Now that Expression Web 4.0 ( is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and Log…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now