Solved

How can I set up an email to be automatically sent to external recipients every 30 minutes?

Posted on 2007-11-26
3
236 Views
Last Modified: 2010-04-21
I want to send an email out every 30 minutes to multiple external recipients for the purpose of ensuring that outbound mail is operational. We are monitoring for outbound mail flow problems if anyone is curious why I'm doing this. I don't care what's in the subject or body of the email - I just want an email sent every 30 minutes.

Does this have to be done in Outlook or is there a way to just configure this to be done on the server?
This is on SBS 2003 SP2 with Exchange 2003 SP2. Thanks.
0
Comment
Question by:WineGeek
3 Comments
 
LVL 28

Expert Comment

by:chilternPC
Comment Utility
maybe some javascript if the addresses were the same
this  sends an email to one person once, I'm sure it could be modified to loop with a timer.:

<%
Dim  objmail,strbody
Set objmail = Server.Createobject("CDONTS.NewMail")
%>

<%
objmail.to = "d.duck@disney,M.mouse@disney.com"
objmail.from = micky@disney.com
objmail.subject = "hello from ABC "
strbody = Chr(13)
strbody = "hello this is the body with carraige returns before and after"
strbody = strbody & Chr(13)
objmail.Body = strbody
objmail.Send

Set objmail = Nothing
%>
0
 
LVL 15

Accepted Solution

by:
vico1 earned 500 total points
Comment Utility
You need to create a vb script on the server to do that.
Cut and Paste the code below to a text pad and save is as a *.cmd or *.bat
example: Mailchk.cmd

::----------------------------------------------------
@echo off
echo Set objEmail = CreateObject("CDO.Message") >Mailchk.vbs
echo objEmail.From = "youremail@yourdomain.com" >>Mailchk.vbs
echo objEmail.To = "Whateveremail@wahteverdomain.com" >>Mailchk.vbs
echo objEmail.Subject = "Mail Check" >>Mailchk.vbs
echo objEmail.Textbody = "This is a mail test" >>Mailchk.vbs
echo objEmail.AddAttachment("D:\Anyattchment.txt") >>Mailchk.vbs
   
echo objEmail.Send >>Mailchk.vbs

call Mailchk.vbs
::-----------------------------------------------------------

Then use taskmanager to run the file to your liking.

Vico1
0
 

Author Closing Comment

by:WineGeek
Comment Utility
SWEET

thanks.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In the event you manage a Small Business Server 2003, and you are audited for PCI compliance, there are several changes you must make in order to pass the audit. I can take no credit for discovering any of these fixes or workarounds, but there is no…
This guide is intended for migrating Windows 2003 Standard with Exchange 2003 to Windows Small Business Server 2008. You will need the following: Exchange Best Practice Analyzer: http://www.microsoft.com/downloads/details.aspx?FamilyID=DBAB201F-…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now