Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Email form

Status
Not open for further replies.

tsp1lrk

IS-IT--Management
May 30, 2001
103
US
Hi- I'm hoping someone can help me in determining the origin of my error-I have a simple form-

It's action is to another form with ASP code to send an email- that's it- When you fill the form out and hit submit- I get an Internal Server error 500- The server, granted is not run by me- it's out in Arizona, I have no access to it- here is my second page of code that is giving the problem- I don't think it's my ASP-

HELP-What's wrong? I looked at another form on the server and they have the SMTPsvg mailer; I've also seen the CDONTS- I have no clue how it's setup and I can't get in touch with this person- good huh?

<%
Dim t1name,t1,t2name,t2,t3name,t3,t4name,t4
t1name = &quot;First Name:&quot;
t1 = Request.Form(&quot;t1&quot;)
t2name = &quot;Last Name:&quot;
t2 = Request.Form(&quot;t2&quot;)
t3name = &quot;Phone:&quot;
t3 = Request.Form(&quot;t3&quot;)
t4name = &quot;Equipment:&quot;
t4 = Request.Form(&quot;t4&quot;)
Dim Mailer
Set Mailer = Server.CreateObject(&quot;SMTPsvg.Mailer&quot;)
Mailer.To = &quot;my email address&quot;
Mailer.From = &quot;User@home.com&quot;
Mailer.Subject = &quot;Classifieds Submission&quot;
Mailer.Body = t1name & vbcrlf&_
t1 & vbcrlf&_
t2name & vbcrlf&_
t2 & vbcrlf&_
t3name & vbcrlf&_
t3 & vbcrlf&_
t4name & vbcrlf&_
t4
Mailer.Send
Set Mailer = Nothing
Response.Redirect &quot;Response.Write&quot;Thank You&quot;
%>

THANKS- in advance for any and all help-
Lisa
 
The error would mean a problem with your page.
Are u sure SMTPsvg is installed.
CDONTS is easy, some sample code for you.

Set Mail=server.CreateObject(&quot;cdonts.newmail&quot;)
Mail.From = &quot;me@here.com&quot;
Mail.to = &quot;you@there.com&quot;
mail.Bcc = &quot;anyone@somwhere.com;someoneelse@anotherplace.com&quot;
Mail.Subject = &quot;Hi there&quot;
Mail.Body=&quot;How are you&quot;
Mail.Send
Mail.Close
Set Mail=Nothing Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top