Solved

ASP Contact Form

Posted on 2009-07-07
5
384 Views
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.
0
Comment
Question by:medpipes
5 Comments
 
LVL 5

Expert Comment

by:rgc6789
Comment Utility
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?
0
 
LVL 29

Accepted Solution

by:
coreybryant earned 168 total points
Comment Utility
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.
0
 
LVL 9

Assisted Solution

by:djpazza
djpazza earned 166 total points
Comment Utility
enter you smtp server address (mail.yoursite.com) 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 ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yoursite.com"

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
 

ObjSendMail.Configuration.Fields.Update
 

'End remote SMTP server configuration section==
 

ObjSendMail.To = "someone@someone.net"

ObjSendMail.Subject = "this is the subject"

ObjSendMail.From = "someone@someone.net"
 

' send a text email

'ObjSendMail.HTMLBody = "this is the body"

ObjSendMail.TextBody = "this is the body"
 

ObjSendMail.Send
 

Set ObjSendMail = Nothing

%>

Open in new window

0
 
LVL 3

Assisted Solution

by:harris9999
harris9999 earned 166 total points
Comment Utility
Lot of useful information and examples here:

http://www.w3schools.com/asp/asp_send_email.asp
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
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 reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

744 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

16 Experts available now in Live!

Get 1:1 Help Now