Sintsof
11-29-2002, 04:27 PM
Hello,
This is my first message...
I have a problem with mail sending! The visitors can send a message with my message service. And if they want, i can notify recipient for this message. So, i need when i approve these messages automaically send email recipients which message wants me to notify it's recipient. But There was a problem. The first recipient received first message, but the second recipient received first and second message...
I didn't find problem.
Here is my code:
Set Mail = Server.CreateObject("Persits.MailSender")
Set RS=conn.Execute("Select * From Mesaj Where ID IN ("&Request.Form("Onayla")&")")
While Not RS.EOF
If RS("EmailBildir")=True Then
Mail.Host = "mail.host.com"
Mail.From = "mail@host.com"
Mail.IsHTML = True
Mail.AddAddress RS("AMail")
Mail.Subject = "Mesaj"
mesajmetni = RS("GAd") + " Size Bir Mesaj Gönderdi"
Mail.Body = mesajmetni
Mail.Send
Mail.Reset()
'RS("EmailBildir")=False
'RS.Update
End If
RS.MoveNext
Wend
RS.Close
Set RS=Nothing
Thanks now...
This is my first message...
I have a problem with mail sending! The visitors can send a message with my message service. And if they want, i can notify recipient for this message. So, i need when i approve these messages automaically send email recipients which message wants me to notify it's recipient. But There was a problem. The first recipient received first message, but the second recipient received first and second message...
I didn't find problem.
Here is my code:
Set Mail = Server.CreateObject("Persits.MailSender")
Set RS=conn.Execute("Select * From Mesaj Where ID IN ("&Request.Form("Onayla")&")")
While Not RS.EOF
If RS("EmailBildir")=True Then
Mail.Host = "mail.host.com"
Mail.From = "mail@host.com"
Mail.IsHTML = True
Mail.AddAddress RS("AMail")
Mail.Subject = "Mesaj"
mesajmetni = RS("GAd") + " Size Bir Mesaj Gönderdi"
Mail.Body = mesajmetni
Mail.Send
Mail.Reset()
'RS("EmailBildir")=False
'RS.Update
End If
RS.MoveNext
Wend
RS.Close
Set RS=Nothing
Thanks now...