Hey gang.
Hoping you can help me here.
I have a page that sends emails out to clans with tournament information. It works, with one small problem.
It goes out to map specific clans. So if 10 clans are registered on a map, it goes out to those 10 clans. simple enough, and that works.
the problem I have is, it also copies the message 10 times in the email it self. so the receiver would be able to scroll down in the email and see the same message 10 times.
if there is 20 users that the email goes out to, then it would copy itself 20 times in the email. I can't figure out what the problem is here.
here is the code i am using.
i have used this scriptmany MANY times before, but it never acted like this.
any help out there please??
tia
Bam
Hoping you can help me here.
I have a page that sends emails out to clans with tournament information. It works, with one small problem.
It goes out to map specific clans. So if 10 clans are registered on a map, it goes out to those 10 clans. simple enough, and that works.
the problem I have is, it also copies the message 10 times in the email it self. so the receiver would be able to scroll down in the email and see the same message 10 times.
if there is 20 users that the email goes out to, then it would copy itself 20 times in the email. I can't figure out what the problem is here.
here is the code i am using.
Code:
'**************************************************
'Dimension variables
Dim objCDOSYSCon
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
'Out going SMTP server
objCDOSYSCon.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "localhost"
objCDOSYSCon.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
objCDOSYSCon.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
objCDOSYSCon.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")[/URL] = 60
objCDOSYSCon.Fields.Update
'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
'*************** get clan information ***********
set emails1 = conn.execute("select clan, email from [table] where map = '" & v_map & "'")
do while not emails1.eof
m_name = trim(emails1.fields.item("clan").value)
m_email = trim(emails1.fields.item("email").value)
objCDOSYSMail.From = "[sender]"
objCDOSYSMail.Bcc = "[director]"
objCDOSYSMail.To = m_email
objCDOSYSMail.Subject = "Tourney "&v_map&" Tournament!"
strMSG = strMSG & "Tournaments By EcK" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "You are being sent this email because of your clans experience on the "&v_map& " map" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "Dear "&v_map& " Maggot;" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "You are officially invited to a "&v_map& " Tournament hosted by the EcK Clan" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "-- Double Elimination Tournament" & VbCrLf
strMSG = strMSG & "-- Format will be "&v_format & VbCrLf
strMSG = strMSG & "-- So pick "&v_format1&" members from your clan that you wish to play." & VbCrLf
strMSG = strMSG & "-- All Team Members must be active in the same Clan" & VbCrLf
strMSG = strMSG & "-- Members do NOT need to sign up, only the clan needs to register on the site." & VbCrLf
strMSG = strMSG & "-- Only 16 Clans can play, so sign up early" & VbCrLf
strMSG = strMSG & "-- Date: " &v_date & " Starting Time "&v_time & VbCrLf
strMSG = strMSG & "-- All teams will use the +EcK+ TeamSpeak Server" & VbCrLf
strMSG = strMSG & "-- EcK has 8 AA Gaming Servers to accommodate 16 Teams" & VbCrLf
strMSG = strMSG & "-- You will have to enter the IP of the server, as well as the PW. You will be given that info in TS." & VbCrLf
strMSG = strMSG & "-- Sign up at [URL unfurl="true"]http://tournamentsbyeck.com/tourney/index_tourney.asp?id="&var1[/URL] & VbCrLf
strMSG = strMSG & "-- All Tournament rules and information are located on The Tourney Web site." & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "Please visit [site] too sign up and get the information on all our " & VbCrLf
strMSG = strMSG & "tournaments for the month of May. All teams must be in TeamSpeak 15 minutes " & VbCrLf
strMSG = strMSG & "before start of the Tournament. Teams will have to check in prior to the start of the " & VbCrLf
strMSG = strMSG & "tournament. Late teams will be dropped for teams on the waiting list. TeamSpeak " & VbCrLf
strMSG = strMSG & "TeamSPeak Ip is posted on Tourney site. Server IP's will be given prior to match." & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "If you have any questions, please reply to this email, and we will get back to you " & VbCrLf
strMSG = strMSG & "promptly." & VbCrLf
strMSG = strMSG & "" & VbCrLf
strMSG = strMSG & "Yours Truely," & VbCrLf
strMSG = strMSG & "GOL Group (Gaming Organizational Leaders)" & VbCrLf
strMSG = strMSG & "[site]" & VbCrLf
strMSG = strMSG & "" & VbCrLf
objCDOSYSMail.TextBody = strMSG
objCDOSYSMail.Send
emails1.movenext
loop
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
Conn.Close
Set Conn = Nothing
i have used this scriptmany MANY times before, but it never acted like this.
any help out there please??
tia
Bam