How do I add your code to my CDO? My CDO is listed below:
<%
' Else
' Response.Write "Cannot page out! Code: " & mailer.ErrorString
' End If
Set mailer=Nothing
%>
<%
Dim objNewMail
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
%>
<%
' First create an instance of NewMail Object
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = Request.Form("User_email")
objNewMail.To = "test.admin@sample.com"
objNewMail.Subject = "Order Request. <automated message>"
objNewMail.Body = "This is just a test."
objNewMail.Send
Set objNewMail = Nothing
%>
Thanks,
John316
Originally posted by Mulligan
Make both the buttons submit buttons, name one "accept" and one "reject". When you POST the form, you can do something like:
If Request.Form("accept").Count <> 0 Then
' Send acceptance email to admin for shipping
ElseIf Request.Form("reject").Count <> 0 Then
' Send the other email
Else
' Throw an error
End If
Use CDO (Collaboration Data Objects) to create and send the emails.
Mull.