Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,
I have a program develop in classic ASP and I am new for it.here is what i need.we have requester or user they want to do book schedule to use our training room.after they feel the form or their request the email will send to the admins and he recive their request and he check in that date the room is available or not if the room is available he can approve it.but the problem is after he aprove the status of the approval or norification email should back to send requester but this part not working in my programm.I mean after he approve the approval email send to requestor. Here is my function if you can add your code I apreciate it this function working curently but it send email to admin about new request coming.
FUNCTION mailtoadmins (requestor_name, requestor_email, req_start_date, req_end_date, class_name)
Set ASPMailer=CreateObject("CDO.Message")

if isempty(conf) then

set conf = CreateObject("cdo.configuration")
with conf.fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.va.gov"
.Update
end with
end if
ASPMailer.From = requestor_email
ASPMailer.To = "blablablabla@yahoo.com"
ASPMailer.Bcc = "blablablabla@gmail.com"

ASPMailer.configuration = conf
ASPMailer.Subject = "[Training Room Booking Request]: " & class_name
ASPMailer.TextBody = vbCRLF & requestor_name & " has submitted a request for training room booking." & _
vbCRLF & vbCR & _
vbCRLF & vbCR & "Proposed Dates: " & req_start_date & " to " & req_end_date & _
vbCRLF & "Proposed Times: " & req_times & _
vbCRLF & "Proposed Class: " & class_name & _
bCR& "Approvevia http://gjgjjsgskdgkdsjgdj/training/room/admin.asp"
ASPMailer.Send
SET ASPMailer = NOTHING
END FUNCTION
%><%''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''%>
Posted

1 solution

Try using the mail sending code from the link

http://www.w3schools.com/asp/asp_send_email.asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900