![]() |
My Top 3 |
![]() |
Previously I was using this code for sending mail - this was working fine
:thumbs: Code:
<% 'send mail code using AspMail 4.x
if = "GRANT" then
decision = "GRANTED"
elseif = "REJECT" then
decision = "REJECTED"
elseif = "PENDING" then
decision = "KEPT PENDING"
end if
Dim strTo
Dim strFrom
Dim strSubject
Dim strBody ‘Strings for recipient, subject, body
strTo = rscheck.Fields ("emp_mailid")
strFrom = rsemp.Fields ("emp_mailid")
strFrom = />strsubject = "Your Leave Application"
Set Mailer =
Mailer.ContentType = "text/html"
Mailer.FromName = session("login")
Mailer.FromAddress = strFrom
Mailer.RemoteHost = "localhost"
Mailer.AddRecipient "Authority", strTo
Mailer.Subject = strSubject
Mailer.ReplyTo = rscheck.Fields ("autho1_mail")
Mailer.BodyText = "
Subject : Decision on your Leave Application
Your leave application for Application Id ‘" & Request.QueryString ("applid") & " is " & decision & " "
Mailer.BodyText = "
Here’s some info"
%>
<%
if Mailer.SendMail then %>
<% Response.Write "Mail sent..." %>
<% 'response.write strbody %>
<% else
Response.Write "Mail send failure. Error was " & Mailer.Response
Response.Write "Approval "
end if
%>





Leave a Reply