Solved

ASP.nter code removedet code sending automatic emails af

Posted on 2013-11-14
3
228 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
ID: 39651995
Hi,
I would publish and also run an IISRESET afterwards.
0
 
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 250 total points
ID: 39652026
Yeah, it sounds like you made the change but never deployed it.
0
 

Author Closing Comment

by:murbro
ID: 39654132
Thanks very much
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server Error 11 58
Turn on intranet settings 1 57
ASP.net Have sliders change in order 2 24
Entity Framework 7 43
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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