'Sends email to Accounts...
strBody = "A new expense claim has been approved by " & Request.Form("Approver") & " for " & TitleCase(Request.Form("Consultant")) & ".<br><br>"
strBody = strBody & "It's now ready for you to pay under ID <strong>" & Request.Form("ClaimID") & "</strong></a>.<br><br>"
%>
<!--#include file="Resources/cdo-message-server.asp"-->
<%
'Message details...
objMail.From = strEmail
objMail.To = strAccEmail
objMail.Subject = "Claim as been approved - " & Request.Form("ClaimID")
objMail.HTMLBody = strBody
objMail.Send
Set objMail = Nothing
'Send update of status to consultant...
strBody = "Your expense form <strong>" & Request.Form("ClaimID") & "</strong> has been approved by" & Request.Form("Approver") & " for " & TitleCase(Request.Form("Consultant")) & ".<br><br>"
strBody = strBody & "It's now with Accounts for payment.<br><br>"
%>
<!--#include file="Resources/cdo-message-server.asp"-->
<%
'Message details...
objMail.From = strEmail
objMail.To = strConsEmail
objMail.Subject = "New Expense Form Added - " & Request.Form("ClaimID")
objMail.HTMLBody = strBody
objMail.Send
Set objMail = Nothing
End If
|