I have some code but.....

This is a discussion on "I have some code but....." within the Classic ASP section. This forum, and the thread "I have some code but..... are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 12th, 2006, 03:28
New Member
Join Date: Apr 2006
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I have some code but.....

ok every1 i have a little bit of code, which is this
Code: Select all
<%
Const cdoSendUsingMethod        = _
 "http://schemas.microsoft.com/cdo/con...tion/sendusing"
Const cdoSendUsingPort          = 1
Const cdoSMTPServer             = _
 "http://schemas.microsoft.com/cdo/con...ion/smtpserver"
Const cdoSMTPServerPort         = _
 "http://schemas.microsoft.com/cdo/con...smtpserverport"
Const cdoSMTPConnectionTimeout  = _
 "http://schemas.microsoft.com/cdo/con...nectiontimeout"
Const cdoSMTPAuthenticate       = _
 "http://schemas.microsoft.com/cdo/con...tpauthenticate"
Const cdoBasic                  = 1
Const cdoSendUserName           = _
 "http://schemas.microsoft.com/cdo/con...n/sendusername"
Const cdoSendPassword           = _
 "http://schemas.microsoft.com/cdo/con...n/sendpassword"
Dim objConfig  ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields     ' As ADODB.Fields
' Get a handle on the config object and it's fields
Set objConfig = Server.CreateObject("CDO.Configuration")
Set Fields = objConfig.Fields
' Set config fields we care about
With Fields
 .Item(cdoSendUsingMethod)       = cdoSendUsingPort
 .Item(cdoSMTPServer)            = "mail.covelli.com"
 .Item(cdoSMTPServerPort)        = 24
 .Item(cdoSMTPConnectionTimeout) = 10
 .Item(cdoSMTPAuthenticate)      = cdoBasic
 .Item(cdoSendUserName)          = "molly.kinsey@covelli.com"
 .Item(cdoSendPassword)          = "*******"
 .Update
End With
Set objMessage = Server.CreateObject("CDO.Message")
Set objMessage.Configuration = objConfig
With objMessage
 .To       = "chris.galati@covelli.com"
 .From     = "molly.kinsey@covelli.com"
 .Subject  = "SMTP Relay Test"
 .TextBody = "SMTP Relay Test Sent @ " & Now()
 .Send
End With
Set Fields = Nothing
Set objMessage = Nothing
Set objConfig = Nothing
response.write "Mail sent successfully"
Response.write("<script language=javascript> window.setTimeout ('window.location=""http://www.panera-tampa.com/index.html""',5000)</script>")
%>
i am trying to make this work with a form that i designed in html, which is hosted here www.panera-tampa.com/application.html I can't figure out how to make this asp file capture the information that is put into the form, then when u hit submit on the form have it email that information. Any help would be appreciated. I would love to talk to any of you on messenger just reply and i'll add you, or you can add me. Thanks for the help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 14th, 2006, 02:43
Up'n'Coming Member
Join Date: Mar 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I have some code but.....

All your asking is to get the info from the form so you can email it right? That is rather easy. You can read up on it here:

http://www.w3schools.com/asp/asp_inputforms.asp

it explains the get and post method of forms in relation to ASP. I suggest using Post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
code, but

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
code help please lcsaeteurn JavaScript Forum 1 Apr 30th, 2008 02:06
code behind code doesnt work skat ASP.NET Forum 4 Feb 18th, 2008 10:05
live search code and styleswitcher code hebel JavaScript Forum 0 May 12th, 2007 06:16
Can somebody give me the code to hide the source code? renren JavaScript Forum 7 Mar 7th, 2006 12:27


All times are GMT. The time now is 19:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved