Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2007

Tip: Looking for answers? Try searching our database.

auto email in asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anu - 26 Jan 2007 07:12 GMT
I have developed a website in ASP 2.0 and SQl
Server.

I want my web site sent email with HTML format(with Photo)
automatically ...at some specified time
(lets say it execute ceratain ASP page at 3:00 am that
send emails)

how can i schedule that?

Should i write some program (EXE) that will run on web
server to do this task or do we have some other decent
solution?
Arundhati Anavekar - 26 Jan 2007 17:01 GMT
Hi Anu,

For what you want to achieve you require to write a Windows Service.
Check on System.ServiceProcess Namespace. the following link would be
of help to you

http://www.codeproject.com/aspnet/ASPNETService.asp

thanks,
Arundhati Anavekar - 26 Jan 2007 17:06 GMT
sorry i put the wrong link. check this
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbco
nintroductiontontserviceapplications.asp

Arundhati Anavekar - 26 Jan 2007 18:23 GMT
also another approach could be to create an executable and assign the
Task Schedular to routinely run it fro you.
Alexey Smirnov - 26 Jan 2007 19:24 GMT
it could be an aspx-form too

you can call it from vbs-script, sheduled in Sheduled Tasks

-------------------------------
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
objXMLHTTP.Open "GET", http://localhost/Task.aspx, False
objXMLHTTP.Send
Set objXMLHTTP = Nothing
End Sub
Sub CallUrl(ByVal u)
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
objXMLHTTP.Open "GET", u, False
objXMLHTTP.Send
Set objXMLHTTP = Nothing
-------------------------------

> also another approach could be to create an executable and assign the
> Task Schedular to routinely run it fro you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.