Hi,
I'm make web page for games wher peaple can registrate and thay select game group (prg,action,sport, etc etc) so when new game is in game group. User how select that gruop recevi e mail notification of new game.
My data base is in Access. and i make same code but problem is if I make new game gruoup and put new game Persits try to send mail ,but bicouse is new group ,so no user for that game group and error came on page :
Technical Information (for support personnel)
Error Type:
Persits.MailSender.4 (0x800A0006)
503 Unexpected command or sequence of commands.
/localhost/game/post.asp, line 339
So can sameone help me.
or if is to mach code just give me same tip like:
do I nead to create new table where is gona be e-mail address of user separate by game group
this is code from post.asp
Set Mail = Server.CreateObject("Persits.MailSender"
Rs.Open "SELECT USER.Name, USER.Email FROM GAMERESUMES INNER JOIN USER ON USER.ID = GAMERESUMES.USERID WHERE USER.WantMails=1 AND GAMERESUMES.Year >= " & Request.Form("cmbYear"
& " AND GAMERESUMES.Price >= " & Request.Form("cmbPrice"
& " AND (GAMERESUMES.GameCategory=" & Request.Form("cmbCategory"
Cn
Mail.Host = "194.154.145.83"
Mail.Port = 25
Mail.From = "metest@test.test"
Mail.FromName = "BalkanJobs"
Mail.Subject = "New Game at Best Game"
Mail.isHTML = True
msg = msg & "New Game at <A HREF=' Game</A> that matches your game group.<BR><BR>" & vbCrLf
msg = msg & "<TABLE WIDTH='495' CELLSPACING='0' CELLPADDING='2'>" & vbCrLf
msg = msg & " <TR BGCOLOR='#DCDCDC'>" & vbCrLf
msg = msg & " <TD WIDTH='375' VALIGN='top'>" & vbCrLf
msg = msg & " <TD WIDTH='120' VALIGN='top' ALIGN='center'>" & vbCrLf
msg = msg & " </TD>" & vbCrLf
msg = msg & " </TR>" & vbCrLf
msg = msg & "</TABLE>" & vbCrLf
msg = msg & "Note: If you would like to stop receiving this notification, " & "<BR>" & vbCrLf
msg = msg & "go to your Edit Profiles page, uncheck box , " & vbCrLf
msg = msg & "next to question: I want to receive mail alert whenever new game......"& "<BR>" & vbCrLf
msg = msg & "Best Game" & vbCrLf
Mail.Body = msg
Do While Not Rs.EOF
Mail.AddAddress Rs.Fields(1), Rs.Fields(0) - I think problem is hire
Rs.MoveNext
Loop
Rs.Close
Mail.Send
Set Mail = Nothing
Thanks
Fule
Fule
I'm make web page for games wher peaple can registrate and thay select game group (prg,action,sport, etc etc) so when new game is in game group. User how select that gruop recevi e mail notification of new game.
My data base is in Access. and i make same code but problem is if I make new game gruoup and put new game Persits try to send mail ,but bicouse is new group ,so no user for that game group and error came on page :
Technical Information (for support personnel)
Error Type:
Persits.MailSender.4 (0x800A0006)
503 Unexpected command or sequence of commands.
/localhost/game/post.asp, line 339
So can sameone help me.
or if is to mach code just give me same tip like:
do I nead to create new table where is gona be e-mail address of user separate by game group
this is code from post.asp
Set Mail = Server.CreateObject("Persits.MailSender"
Rs.Open "SELECT USER.Name, USER.Email FROM GAMERESUMES INNER JOIN USER ON USER.ID = GAMERESUMES.USERID WHERE USER.WantMails=1 AND GAMERESUMES.Year >= " & Request.Form("cmbYear"
Mail.Host = "194.154.145.83"
Mail.Port = 25
Mail.From = "metest@test.test"
Mail.FromName = "BalkanJobs"
Mail.Subject = "New Game at Best Game"
Mail.isHTML = True
msg = msg & "New Game at <A HREF=' Game</A> that matches your game group.<BR><BR>" & vbCrLf
msg = msg & "<TABLE WIDTH='495' CELLSPACING='0' CELLPADDING='2'>" & vbCrLf
msg = msg & " <TR BGCOLOR='#DCDCDC'>" & vbCrLf
msg = msg & " <TD WIDTH='375' VALIGN='top'>" & vbCrLf
msg = msg & " <TD WIDTH='120' VALIGN='top' ALIGN='center'>" & vbCrLf
msg = msg & " </TD>" & vbCrLf
msg = msg & " </TR>" & vbCrLf
msg = msg & "</TABLE>" & vbCrLf
msg = msg & "Note: If you would like to stop receiving this notification, " & "<BR>" & vbCrLf
msg = msg & "go to your Edit Profiles page, uncheck box , " & vbCrLf
msg = msg & "next to question: I want to receive mail alert whenever new game......"& "<BR>" & vbCrLf
msg = msg & "Best Game" & vbCrLf
Mail.Body = msg
Do While Not Rs.EOF
Mail.AddAddress Rs.Fields(1), Rs.Fields(0) - I think problem is hire
Rs.MoveNext
Loop
Rs.Close
Mail.Send
Set Mail = Nothing
Thanks
Fule
Fule