Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old April 11th, 2006, 11:28 PM   #1
New Member
 

Join Date: Apr 2006
Age: 23
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 hacker1312001 is on a distinguished road
I have some code but.....

ok every1 i have a little bit of code, which is this
Code:
<%
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
hacker1312001 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 13th, 2006, 10:43 PM   #2
WebForumz Member
 

Join Date: Mar 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 crazyluv will become famous soon enough
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.
crazyluv is offline  
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

Bookmarks

Tags
code , but


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 1 April 29th, 2008 10:06 PM
code behind code doesnt work skat .NET 4 February 18th, 2008 06:05 AM
live search code and styleswitcher code hebel JavaScript 0 May 12th, 2007 02:16 AM
Can somebody give me the code to hide the source code? renren JavaScript 7 March 7th, 2006 08:27 AM


Search Engine Optimization by vBSEO 3.2.0 RC8