I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them
either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the
schedular?
Thanks,
Tom 7 1258
Yes, write just an executable, and schedule it to run whenever you need to.
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl... I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the schedular?
Thanks,
Tom
Yes, you could schedule a normal exe, or you could create a windows service
to handle the task.
Here's more information on Windows Services: http://msdn.microsoft.com/library/de...owsService.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl... I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the schedular?
Thanks,
Tom
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl... Yes, you could schedule a normal exe, or you could create a windows service to handle the task.
Here's more information on Windows Services: http://msdn.microsoft.com/library/de...owsService.asp
Checked there. But it says the page isn't there.
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "tshad" <ts**********@ftsolutions.com> wrote in message news:ua**************@TK2MSFTNGP12.phx.gbl...I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the schedular?
Thanks,
Tom
Sorry, try this link instead.
Windows Services: http://msdn.microsoft.com/library/de...plications.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:eP**************@TK2MSFTNGP09.phx.gbl... Yes, you could schedule a normal exe, or you could create a windows service to handle the task.
Here's more information on Windows Services: http://msdn.microsoft.com/library/de...owsService.asp
Checked there. But it says the page isn't there.
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "tshad" <ts**********@ftsolutions.com> wrote in message news:ua**************@TK2MSFTNGP12.phx.gbl...I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the schedular?
Thanks,
Tom
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Sorry, try this link instead.
Windows Services: http://msdn.microsoft.com/library/de...plications.asp
Much better.
Is it available in Visual Studio .NET 2003?
It says it isn't available in the Standard Edition of Visual Basic and
Visual C# .NET.
Thanks,
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message news:uR**************@TK2MSFTNGP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:eP**************@TK2MSFTNGP09.phx.gbl... Yes, you could schedule a normal exe, or you could create a windows service to handle the task.
Here's more information on Windows Services: http://msdn.microsoft.com/library/de...owsService.asp
Checked there. But it says the page isn't there.
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "tshad" <ts**********@ftsolutions.com> wrote in message news:ua**************@TK2MSFTNGP12.phx.gbl... I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the schedular?
Thanks,
Tom
re: Is it available in Visual Studio .NET 2003?
You can build Windows Services with *any* version of VS.NET.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"tshad" <ts**********@ftsolutions.com> wrote in message
news:OI**************@TK2MSFTNGP14.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Sorry, try this link instead.
Windows Services: http://msdn.microsoft.com/library/de...plications.asp
Much better.
Is it available in Visual Studio .NET 2003?
It says it isn't available in the Standard Edition of Visual Basic and Visual C# .NET.
Thanks,
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message news:uR**************@TK2MSFTNGP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:eP**************@TK2MSFTNGP09.phx.gbl... Yes, you could schedule a normal exe, or you could create a windows service to handle the task.
Here's more information on Windows Services: http://msdn.microsoft.com/library/de...owsService.asp
Checked there. But it says the page isn't there.
Tom
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net "tshad" <ts**********@ftsolutions.com> wrote in message news:ua**************@TK2MSFTNGP12.phx.gbl... >I am trying to figure out the best way to send automated emails? > > I have emails that I want to send out to certain clients that need them either daily > or weekly. > > How would I do in asp.net? > > Or is it better to write normal app to handle this that I run from the schedular? > > Thanks, > > Tom >
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eY**************@TK2MSFTNGP14.phx.gbl... re: Is it available in Visual Studio .NET 2003? You can build Windows Services with *any* version of VS.NET.
I have a class that I use for my emails as a namespace for my asp.net
program. It accesses my Sql Server as well as uses the CDO to send the mail
from my asp.net server (W2003 server).
Can I use this .dll for my Windows Service?
The Source looks something like:
************************************************** ****************
Imports System
Imports System.Web
Imports System.IO
Imports System.Web.UI
Imports System.Web.SessionState
Imports System.Web.Mail
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.HttpCookie
Imports System.Web.HttpCookieCollection
Imports System.Web.HttpResponse
Imports System.Web.HttpRequest
imports System.Web.HttpContext
Imports System.Web.HttpApplication
Imports System.Web.HttpApplicationState
Imports Microsoft.VisualBasic
NameSpace MyFunctions
Public Class Email
Public Shared sub sendEmail ( body as string, emailType as string,
emailTitle as String)
dim webMasterEmail As String
dim emailSubject As String
Dim mailServer As String
Dim contactEmail As String
Dim screenTestSubject As String
Dim subject as String
Dim emailReader As SqlDataReader
Dim ConnectionString as String
=System.Configuration.ConfigurationSettings.AppSet tings("MM_CONNECTION_STRING_mydatabase")
Dim objConn as New SqlConnection (ConnectionString)
Dim CommandText as String = "Select
MailServer,WebMasterEmail,ContactEmail,ScreenTestS ubject,ResumeSubject from
emailResponse where ClientID = '1234'"
Dim objCmd as New SqlCommand(CommandText,objConn)
objConn.Open()
emailReader = objCmd.ExecuteReader
if emailReader.Read then
mailServer = emailReader("MailServer")
webMasterEmail = emailReader("WebMasterEmail")
contactEmail = emailReader("ContactEmail")
subject = emailReader("ScreenTestSubject")
select case emailType
case "Resume"
subject = emailReader("resumeSubject")
end Select
end If
objConn.close()
dim URLPath As String = _
Left(Current.request.path, InStrRev(Current.request.path, "/") - 1)
Dim objStreamReader as StreamReader
Dim strInput As String
Dim strBuffer As String
If
File.exists(Current.Server.MapPath("..\..\automail \new_account_automail.htm"))
then
objStreamReader =
File.OpenText(Current.Server.MapPath("..\..\automa il\new_account_automail.htm"))
strInput = objStreamReader.ReadLine()
while strInput <> nothing
strBuffer = strBuffer & strInput
strInput = objStreamReader.ReadLine()
end while
objStreamReader.Close
end if
Dim Message As New MailMessage()
message.To = contactEmail
message.From = webMasterEmail
message.Subject = subject
message.body = body
strInput = strBuffer.replace("#MESSAGE#",message.Body)
strInput = strInput.replace("#MAILTITLE#",emailTitle)
message.Body = strInput
message.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = mailServer
smtpMail.Send(message)
end sub
end class
end NameSpace
************************************************** ****************
I compile it from the command line:
vbc /t:library email.vb /r:system.web.dll /r:system.data.dll /r:system.dll
/r:Microsoft.VisualBasic.dll
Would I need to take out the web stuff to make it work?
Thanks,
Tom
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ======================
"tshad" <ts**********@ftsolutions.com> wrote in message news:OI**************@TK2MSFTNGP14.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Sorry, try this link instead.
Windows Services: http://msdn.microsoft.com/library/de...plications.asp
Much better.
Is it available in Visual Studio .NET 2003?
It says it isn't available in the Standard Edition of Visual Basic and Visual C# .NET.
Thanks,
Tom -- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"tshad" <ts**********@ftsolutions.com> wrote in message news:uR**************@TK2MSFTNGP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:eP**************@TK2MSFTNGP09.phx.gbl... > Yes, you could schedule a normal exe, or you could create a windows > service to handle the task. > > Here's more information on Windows Services: > http://msdn.microsoft.com/library/de...owsService.asp
Checked there. But it says the page isn't there.
Tom > > -- > I hope this helps, > Steve C. Orr, MCSD, MVP > http://SteveOrr.net > > > > "tshad" <ts**********@ftsolutions.com> wrote in message > news:ua**************@TK2MSFTNGP12.phx.gbl... >>I am trying to figure out the best way to send automated emails? >> >> I have emails that I want to send out to certain clients that need >> them either daily or weekly. >> >> How would I do in asp.net? >> >> Or is it better to write normal app to handle this that I run from >> the schedular? >> >> Thanks, >> >> Tom >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bengt Richter |
last post by:
I find that threads sometimes mention PEPs that I wasn't aware of,
or that an interesting one has been updated without my noticing.
I should perhaps check the PEP site more regularly, but ISTM it...
|
by: SueHales |
last post by:
Hi, folks. I'm fairly new to SQL Server, so forgive any stupidity
inherent in this question. I work at a university and a certain
faculty member would like to have her students create a simple...
|
by: Benny |
last post by:
Dear All,
I need to send a set of Emails from my application (reminders) each month
1st. Is there anyway in ASP scripts to trigger an event to run
automatically? I have no dedicated server, so...
|
by: MLH |
last post by:
I would like to configure OutLook Express so that it does not
attempt to resend eMails in the Outbox folder whenever new
sends are made From Access. The ISP's server rejects some
eMail address...
|
by: priya0123 |
last post by:
Hi,
I want to send automated emails. I want to send emails to some persons in the table at the end of the day like 10.00 pm every day. How do I do that?
I am using sql server 2000 and asp.net.
...
|
by: lekshmi200 |
last post by:
I want to send automated emails. I want to send emails to some persons in the table at the end of the day like 10.00 pm every day. How do I do that?
I am using python and mysql.pliseeeeeee give me a...
|
by: bmjnine |
last post by:
Hi all,
I am trying to setup a daily task in my .NET (1.1) application. The
application is a project management tool, and the daily task I am
trying to set up will check for overdue project...
|
by: tonydevlin |
last post by:
I currently have the python code
obj=sti.object
creator = obj.Creator()
history = sti.getHistory()
wf_tool = context.portal_workflow
mMsg = """
Content has been submitted for your review....
|
by: techsri |
last post by:
Hi,
We are going to launch a website which offers free e-learning courses to the users. we are facing some problems to build my site. The problem is about, We want add push email feature to our...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |