I hope someone can help me. I'm trying to setup an ASP page that will automatically send and email once the submit button is clicked. But my problem is that Lotus Notes is the email client and the script below is setup for Outlook to be the client. I've tried looking on the web but I can't seem to find anything that helps. Can anyone help me alter the code below so that it will work with Lotus Notes?
<%
if not IsEmpty(Request.Form("Send")) then
if Request.Form("SendTo") = "All" then
set RSEmails = conn.Execute("select EmpEmailAddress from I1BlastEmps")
elseif Request.Form("SendTo") = "Department" then
set RSEmails = conn.Execute("select EmpEmailAddress from I1BlastEmps " _
& "where Department = '" & Request.Form("DepartmentName") & "'")
else
set RSEmails = conn.Execute("select EmpEmailAddress from I1BlastEmps " _
& "where Role = '" & Request.Form("RoleName") & "'")
end if
set RSWhoForm = conn.Execute("Select EmpID, EmpEmailAddress from I1BlastEmps " _
& "where EmpID = " & Request.Form("EmpID"))
FromAddress = RSWhoForm("EmpEmailAddress")
do Until RSEmails.eof
set objMail = CreateObject("CDONTS.NewMail")
objMail.Send FromAddress,RSEmails("EmpEmailAddress"), _
cstr(Request.Form("Subject")),cstr(Request.Form("M essage"))
set objmail = nothing
RSEmails.MoveNext
loop
conn.Execute "Insert Into I1Blasts (EmpID, Subject, Message, WhenSent) values (" _
& "" & Request.Form("EmpID") & ", " _
& "'" & Request.Form("Subject") & "', " _
& "'" & Request.Form("Message") & "', " _
& "'" & Now() & "')"
TheMessage = "Message was sent!"
else
TheMessage = "Enter your message below"
end if
set RSDepartments = conn.Execute("select distinct Department from " _
& "I1BlastEmps order by Department")
set RSRoles = conn.Execute("select distinct Role from " _
& "I1BlastEmps order by Role")
set RSEmps = conn.Execute("select EmpID, EmpName from " _
& "I1BlastEmps order by EmpName")
%>