E-mailing message

grnzbra

Registered User.
Local time
Today, 11:16
Joined
Dec 5, 2001
Messages
376
I am using the send object command to send a series of e-mails. The code loops through a table of message text and e-mail addresses to fill in the parameters of the command. My problem is that the code runs out ahead of the sending of the e-mails. Is there any command that can stop the code until the system is ready to process the next message? I am currently using a timer but would like to use something a little more efficient.
 
change the command to view the email then send it yourself, that way the code pauses until the email has been sent
 
Would that allow me to walk away and come back 15 minutes later and have all 200 or so e-mail sent?
 
You could just make a software delay loop inside the funtion e.g.

Sub MyDelayMacro
For iCount = 1 to 999999
Next iCount
End Sub

or maybe better for you:

Sub MyMainMacro()
' Pause for 15 seconds.
Application.OnTime When:=Now + TimeValue("00:00:15"), _
Name:="MyDelayMacro"
End Sub

Hope this helps you
Mike
 

Users who are viewing this thread

Back
Top Bottom