Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 24th, 2006, 05:35 PM
CS
Guest
 
Posts: n/a
Default Not receiving all emails

I have a stored procedure which sends out an email to all the users
listed in the database. for some reasons I am not getting all emails.
could someone offere some assistance?

Here's my code. Global.asa

Sub Session_OnStart
'==Visual InterDev Generated - DataConnection startspan==
'--BCSI Data Connection


Session("TMS_ConnectionString") = "DSN=Test"
Session("TMS_ConnectionTimeout") = 60
Session("TMS_CommandTimeout") = 60
Session("TMS_RuntimeUserName") = " "
Session("TMS_RuntimePassword") = ""


End Sub


My asp page:

Set cnTMS = Server.CreateObject("ADODB.Connection")
cnTMS.ConnectionTimeout = Session("TMS_ConnectionTimeout")
cnTMS.CommandTimeout = Session("TMS_CommandTimeout")
cnTMS.Open Session("TMS_ConnectionString"),
Session("TMS_RuntimeUserName"), Session("TMS_RuntimePassword")

Set rsTMS = Server.CreateObject("ADODB.Recordset")
Set cmdTMS = Server.CreateObject("ADODB.command")
cmdTMS.CommandText = " "
'
cmdTMS.CommandText = "Exec Test_ResStaffEmail"
'
cmdTMS.CommandType = 1
Set cmdTMS.ActiveConnection = cnTMS
rsTMS.Open cmdTMS, , 1, 3

'
' rsTMS.Close
'
Set cmdTMS = Nothing
Set rsTMS = Nothing

Am i missing somethins as it is supposed to send out 90 emails but i
receive only 5? Teh stored procedure is getting executed but the mails
are not coming through.

Thanks

  #2  
Old February 24th, 2006, 10:15 PM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Not receiving all emails

It's difficult to say with knowing the content of the SP.

I'm not sure this is an appropriate place for the question it's doubtful
that the problem really lies in the realm of ASP.

Why doesn't the SP CURSOR through the set records for emailing rather than
have a VBScript do it?

Anthony.


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles