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 1271
Yes, write just an executable, and schedule it to run whenever you need to.
"tshad" <ts**********@f tsolutions.com> wrote in message
news:ua******** ******@TK2MSFTN GP12.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**********@f tsolutions.com> wrote in message
news:ua******** ******@TK2MSFTN GP12.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.ne t> wrote in message
news:eP******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message news:ua******** ******@TK2MSFTN GP12.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**********@f tsolutions.com> wrote in message
news:uR******** ******@TK2MSFTN GP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:eP******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message news:ua******** ******@TK2MSFTN GP12.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.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.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**********@f tsolutions.com> wrote in message news:uR******** ******@TK2MSFTN GP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:eP******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message news:ua******** ******@TK2MSFTN GP12.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**********@f tsolutions.com> wrote in message
news:OI******** ******@TK2MSFTN GP14.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:%2******** ********@TK2MSF TNGP12.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**********@f tsolutions.com> wrote in message news:uR******** ******@TK2MSFTN GP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:eP******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message news:ua******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP14.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.Sess ionState
Imports System.Web.Mail
Imports System.Data
Imports System.Data.Sql Client
Imports System.Web.Http Cookie
Imports System.Web.Http CookieCollectio n
Imports System.Web.Http Response
Imports System.Web.Http Request
imports System.Web.Http Context
Imports System.Web.Http Application
Imports System.Web.Http ApplicationStat e
Imports Microsoft.Visua lBasic
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 screenTestSubje ct As String
Dim subject as String
Dim emailReader As SqlDataReader
Dim ConnectionStrin g as String
=System.Configu ration.Configur ationSettings.A ppSettings("MM_ CONNECTION_STRI NG_mydatabase")
Dim objConn as New SqlConnection (ConnectionStri ng)
Dim CommandText as String = "Select
MailServer,WebM asterEmail,Cont actEmail,Screen TestSubject,Res umeSubject from
emailResponse where ClientID = '1234'"
Dim objCmd as New SqlCommand(Comm andText,objConn )
objConn.Open()
emailReader = objCmd.ExecuteR eader
if emailReader.Rea d then
mailServer = emailReader("Ma ilServer")
webMasterEmail = emailReader("We bMasterEmail")
contactEmail = emailReader("Co ntactEmail")
subject = emailReader("Sc reenTestSubject ")
select case emailType
case "Resume"
subject = emailReader("re sumeSubject")
end Select
end If
objConn.close()
dim URLPath As String = _
Left(Current.re quest.path, InStrRev(Curren t.request.path, "/") - 1)
Dim objStreamReader as StreamReader
Dim strInput As String
Dim strBuffer As String
If
File.exists(Cur rent.Server.Map Path("..\..\aut omail\new_accou nt_automail.htm "))
then
objStreamReader =
File.OpenText(C urrent.Server.M apPath("..\..\a utomail\new_acc ount_automail.h tm"))
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.repla ce("#MESSAGE#", message.Body)
strInput = strInput.replac e("#MAILTITLE#" ,emailTitle)
message.Body = strInput
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = mailServer
smtpMail.Send(m essage)
end sub
end class
end NameSpace
*************** *************** *************** *************** ******
I compile it from the command line:
vbc /t:library email.vb /r:system.web.dl l /r:system.data.d ll /r:system.dll
/r:Microsoft.Vis ualBasic.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**********@f tsolutions.com> wrote in message news:OI******** ******@TK2MSFTN GP14.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:%2******** ********@TK2MSF TNGP12.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**********@f tsolutions.com> wrote in message news:uR******** ******@TK2MSFTN GP10.phx.gbl... "Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:eP******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message > news:ua******** ******@TK2MSFTN GP12.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 shouldn't
be that hard to implement an automated notification of PEP status changes
by email. A cron job could just monitor the PEP source directory and
watch for new files and last-mod changes, for starters. Maybe that would
be sufficient,...
|
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 auction
web site as an exercise. As part of the assignment, she wants the
auction site to be able to send an email to a bidder when they have
been outbid.
So she has asked me if this is possible, and how to do it. I've read a
bit about sending...
|
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 no DLLs or Scheduler scripts
can be used. Also adding the trigger script in the application object may
not send emails in time, as we have not enough visitors to that application.
Is there any way other than 'Clicking a Send button'?
Any support...
|
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 immediately...
Things like JohnDoe@aol. (an incomplete address) and sometimes
NonExistent@NorthState.net (if NorthState is my ISP, its mail server
knows IMMEDIATELY that NonExistent is NOT a valid mailbox in
their system.
|
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.
Thanks in advance for the reply.
| |
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 reply
|
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 deadlines, and send
out email reminders.
I have setup all the logic that checks deadlines & sends the emails,
and that works great. However, automating it has been a problem.
|
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.
The url was %s.
The reason was %s.
|
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 site. Using that feature we want to send automated emails to the users after successful registration, upon course completion etc. Please suggest us the better to complete this site.
Thank you.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |