Knowledge Transfer

Sunday, November 18, 2007

Automatically send the mail Through Schedular in ASP,ASP.NET,JSP or Any programming

This Code is Helpful when i am sending one Greeting at Specified Date.then that time the Greeting will be Sened o Specific Person Through XMLHttp Object in ASP,ASP.NET.

plz write the this VBS file or ASP File any file like this using XMLHttp Object.
-------------------------------------------------------------------------
Sub MyASPJob()
Dim oXMLHttp
Dim sURL
on error resume next
Set oXMLHttp = CreateObject("MSXML2.XMLHTTP.3.0")
sURL = "http://dev.hydcarpool.com/giftcard/dispatcher.asp"
oXMLHttp.open "GET", sURL, false
oXMLHttp.send()
if oXMLHttp.status = 200 Then
' Retrieve enter HTML response
MsgBox "Job Executed!!!!"
'MsgBox oXMLHttp.ResponseText
else
' Failed
end if
Set oXMLHttp = nothing
End Sub
Call MyASPJob()
---------------------------------------------------------------------------

Here The sURL="http://dev.hydcarpool.com/giftcard/dispather.asp" File Contain the all Email Address For Sending Specific time.

Then Let's Start the Process to put the above "dispatch.vbs" File into Schduler.

ControlePanel--->Scheduler--->add -->add the dispatch.vbs File into Schedular.
For Specific time to execute that File.that's it.

then Automaticay Everyday Schedular is Excuted then that time the "dispather.asp" File is called ...

Happy Coding.

2 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home