Question : Sending emails using objMail - creating duplicate emails

Hi,

Have a page with a "Submit" buton which emails when clicked.  I created this locally and it all worked fine and now that it's on the server, it's sending the email twice - an exact duplicate.

Initially I thought the user had run the code twice, but I've now locked this down and it's still occuring.

There is also only one email address in the table where I'm getting the email address from.

Thanks

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
'Run if form being submitted for approval...	
			If Len(Request.QueryString("Submit")) > 0 Then
			  
				strSQL2 = "SELECT * FROM Users WHERE [User Name] = '" & Request.Form("Approver") & "';" 'Get approvers email address...
				objRS2.Open strSQL2, objConn
					strEmail = objRS2("Email")			
				objRS2.Close
				 
				strBody = "A new expense claim has been added to the database by " & TitleCase(Request.Form("Consultant")) & ".<br><br>"
				strBody = strBody & "It's now ready for you to approve under ID <strong>" & Request.Form("ClaimID") & "</strong></a>.<br><br>"
				
				%>
					<!--#include file="Resources/cdo-message-server.asp"-->
				<%
						 
					'Message details...
						objMail.From		= strFrom
						objMail.To			= strEmail
						objMail.Subject		= "New Expense Form Added - " & Request.Form("ClaimID")
						objMail.HTMLBody	= strBody
					
					objMail.Send
					 
				Set objMail = Nothing
			
			End If

Answer : Sending emails using objMail - creating duplicate emails

You can for Windows 2003

You take the core 4 - 290, 291, 293, and 294

Then you take one of the OS exams, one design exam, and one elective

That gets you your seven exams.

For Windows 2000 you can't because their core exams are retired now

Thanks

Mike

Random Solutions  
 
programming4us programming4us