Link to home
Start Free TrialLog in
Avatar of citadelind
citadelindFlag for India

asked on

Scheduling an email using Windows Scheduler in asp.net

I want to Scheduling an email using Windows Scheduler in asp.net.

I want to mail automatically send on 1 week and 1 month.

Please give me code or detail how to do in asp.net.

Please give me as soon as possible.

Thanking you
Avatar of Amitabh Singh
Amitabh Singh
Flag of India image

hi
i just able to provide you link because i never did this via ASP.NET

have a look to the post below for code

https://www.experts-exchange.com/questions/22966978/Sending-Mail-via-ASP-net.html?sfQueryTermInfo=1+10+30+asp.net+mail+send



Hear is a Microsoft doc for same staff

http://msdn.microsoft.com/en-us/magazine/cc163821.aspx

and why not just use the regular windows scheduler to  sends the emails via VBS ? Is there a reason it needs to be launched from within ASP.NET originally?
VBS Example

Dim objOutl
Set objOutl = CreateObject("Outlook.Application")
Set objMailItem = objOutl.CreateItem(olMailItem)
'comment the next line if you do not want to see the outlook window
objMailItem.Display
strEmailAddr  = "me.me@you.com"
objMailItem.Recipients.Add strEmailAddr
objMailItem.Body = "Hi"
objMailItem.Attachments.Add "file.xml"
objMailItem.Send
Set objMailItem = nothing
Set objOutl = nothing

Open in new window

Avatar of citadelind

ASKER

Please give me specific code so i can apply easily

Or Give me some link so i will see that
ASKER CERTIFIED SOLUTION
Avatar of Amitabh Singh
Amitabh Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial