Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code runs only on refresh

Status
Not open for further replies.

smtv

Technical User
Nov 7, 2000
2
GB
when the page loads this script is to be ran straight away

<%
Set objNewMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
objNewMail.From = &quot;downloads@somewhere.com&quot;
objNewMail.To = &quot;someone@somewhere.com&quot;
objnewmail.Cc = &quot;someoneelse@somewhere.com&quot;
objNewMail.Subject = &quot;HCL Downloads&quot;
objNewMail.Body=&quot;The software can be downloaded from here&quot;
objNewMail.Send
Set objNewMail = Nothing
%>

but this is only executing about 50% of the time, while if the page is refreshed it always get executed.

Any idea as to whats wrong and how to sort it out, just getting back into ASP after a break so a little slow at the mo
 
what is the code around the above? Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top