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!

submit an email via form 1

Status
Not open for further replies.

jeevenze

Technical User
Mar 13, 2001
62
US
I've built an ecommerce site using ASP in Ultradev. On the last checkout page, there is a button to submit the order. Is there a way that I can insert a few lines of code where when the user hits the submit button I can get an email notifying me of the order?

Thanks in advance to anyone who helps me.

Jeevenze
 
The following will only work if your provider has set up the MS SMTP Service:

DIM myMail
SET myMail = Server.CreateObject("CDONTS.Newmail")
myMail.From = "me"
myMail.To = "you@domain.com"
myMail.Subject = "order"
myMail.Body = "an order was entered"
myMail.Send
SET myMail = Nothing

...you may want to contact your provider if above script does not work - it may be he has not installed the standard SMTP Service but another third-party-component (both would be plugins anyway) that has more capabilities (like POP for example...)

Hope this helps
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
A good solution to the other one, but If you want to be a bit professional and use some ASP scripting. Visit and select ASP samples. Then e-mail.

Hope this is of help.

Fatman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top