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.
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:
hello i also want to create same application in c#
can you please help me in that?
By Unknown, At July 3, 2008 at 11:26 PM
hello, i am trying to send mail using xml document...the email is about system cofiguration info usin snm...can u please help me with sending mails through xml document...
By Unknown, At March 25, 2009 at 11:24 PM
Post a Comment
Subscribe to Post Comments [Atom]
<< Home