Solved

ASP.nter code removedet code sending automatic emails af

Posted on 2013-11-14
3
221 Views
Last Modified: 2013-11-16
Hi.

I included the following code in my ASP.net project to test sending automated emails.
I debugged once then commented the code out, but emails have been sent throughout the night. How do I stop this.
I previously asked about this and accepted an answer, but the emails continued.
Does publishing the project help?

Imports System.Web.SessionState
Imports System.Timers

Public Class Global_asax
    Inherits System.Web.HttpApplication

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when the application is started
        ' Code that runs on application startup
        Dim myTimer As New System.Timers.Timer()
        ' Set the Interval to 5 seconds (5000 milliseconds).
        myTimer.Interval = 5000
        myTimer.AutoReset = True
        AddHandler myTimer.Elapsed, New ElapsedEventHandler(AddressOf myTimer_Elapsed)
        myTimer.Enabled = True
    End Sub
    Public Sub myTimer_Elapsed(source As Object, e As System.Timers.ElapsedEventArgs)
        ' use your mailer code
        Dim sBody As String = "From Great Site"
        Dim objScheduleMail As New clsScheduleMail()
        objScheduleMail.SendScheduleMail("info@online-excel.com", "info@online-excel.com", "murbro9@yahoo.com", "", "Excel-Online enquiry", sBody)
    End Sub
0
Comment
Question by:murbro
3 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 250 total points
Comment Utility
Hi,
I would publish and also run an IISRESET afterwards.
0
 
LVL 33

Assisted Solution

by:paulmacd
paulmacd earned 250 total points
Comment Utility
Yeah, it sounds like you made the change but never deployed it.
0
 

Author Closing Comment

by:murbro
Comment Utility
Thanks very much
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now