Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set Message = CreateObject("CDONTS.NewMail")
BodyToSend = "<HTML><HEAD>" & _
"<style>body {font-family:courier;font-size:10pt;}</style>" & _
"</HEAD><BODY>Dear " & Trim(rsObj("USERNAME")) & ",<br><br>" & _
"Your password is <b>" & Trim(rsObj("PASSWORD")) & "</b>." & _
"</BODY></HTML>"
Message.From = "Web Messenger <mywebemail@mydomain.com>"
Message.To = rsObj("EMAIL")
Message.Subject = "Your Password"
Message.Body = BodyToSend
Message.Importance = 2 'cdoHigh
Message.BodyFormat = 0 'cdoBodyFormatHTML
Message.MailFormat = 0 'cdoMailFormatMime
On Error Resume Next
Message.Send
Set Message = nothing
<%
objRS.Open "SELECT * FROM tblLUPStaffNames WHERE StaffID = " & Request.Form("cboFor")
Response.Write "<BR><a href='mailto:"
Response.Write objRS("StaffEmail")
Response.Write "?subject=Automatic Message: " & Now
Response.Write "&body=" & objRS("CannedMessage") & "'>"
Response.Write "Email Reminder"
Response.Write "</a>"
objRS.Close
%>
<%
objRS.Open "SELECT * FROM tblLUPStaffNames WHERE StaffID = " & Request.Form("cboFor")
strMessage = "Dear " & objRS("StaffName") & vbcrlf & vbcrlf
strMessage = strMessage & "Some kind of text... and you can use the 'vbcrlf' constant to make multiple lines in the message. You may need to be careful because I think you are limited to max 255 characters, starting from 'mailto' to the end of your message"
Response.Write "<BR><a href='mailto:"
Response.Write objRS("StaffEmail")
Response.Write "?subject=Automatic Message: " & Now
Response.Write "&body=" & strMessage & "'>"
Response.Write "Email Reminder"
Response.Write "</a>"
objRS.Close
%>
%0D%0A