ASP CDO Script Web E-mail Forms

Completed Posted Apr 9, 2013 Paid on delivery
Completed Paid on delivery

I have several forms built on a web site and need someone to make the back end mail form work correctly with my client's web host. I don't have much information but I do have a sample form that works on this Web host. It's a WIN NT server so must use ASP. Should be pretty simple for those who know what they are doing in ASP. I don't. Total of 5 forms, with as many as 10 fields in each form.

Sample form below:

<%

SUB sendmail( fromWho, toWho, Subject, Body )

Dim objCDO

Dim iConf

Dim Flds

Const cdoSendUsingPort = 2

Set objCDO = [url removed, login to view]("CDO.Message")

Set iConf = [url removed, login to view]("CDO.Configuration")

Set Flds = [url removed, login to view]

With Flds

.Item(cdoSendUsingMethod) = cdoSendUsingPort

.Item(cdoSMTPServer) = "mail-fwd"

.Item(cdoSMTPServerPort) = 25

.Item(cdoSMTPconnectiontimeout) = 10

.Update

End With

Set [url removed, login to view] = iConf

[url removed, login to view] = fromWho

[url removed, login to view] = toWho

[url removed, login to view] = Subject

[url removed, login to view] = Body

[url removed, login to view]

END SUB

fromWho = TRIM( [url removed, login to view]( "fromWho") )

toWho = TRIM( [url removed, login to view]( "toWho") )

Subject = TRIM( [url removed, login to view]( "Subject" ) )

Body = TRIM( [url removed, login to view]( "Body") )

If toWho "" THEN

sendMail fromWho, toWho, Subject, Body

'Cleanup

Set ObjCDO = Nothing

Set iConf = Nothing

Set Flds = Nothing

[url removed, login to view] "confirmation.html"

' Any existing page can be used for the response redirect method

END IF

%>

Email Form

<FORM METHOD="POST" ACTION="">

TO:

FROM:

SUBJECT:

ASP

Project ID: #4414321

About the project

3 proposals Remote project Active Apr 9, 2013

Awarded to:

onedeepen

Ready to start. Please check PMB for portfolio and other details. regards.

$50 USD in 1 day
(5 Reviews)
3.4

3 freelancers are bidding on average $101 for this job

kabirchy

Hi, I can help you get this done. Thanks

$103 USD in 3 days
(21 Reviews)
5.1
softdir

Hi There, Please I need to ask a few more questions.

$150 USD in 5 days
(5 Reviews)
3.6