alternating email error? 
Author Message
 alternating email error?

I'm trying to automate sending an email, this code works every other time it
runs.  When it doesn't work, the first send keys enters the email address
into the message title instead. Any ideas?
Thanks, Dennis

Public Sub subMailer()
Shell "c:\program files\microsoft office\office\outlook.exe /c ipm.note"
'opens a new message
AppActivate "untitled", True      'activates the message

SendKeys "{tab 2}", True     'tabs to the title
SendKeys "test email", True      'enters the title
SendKeys "%(s)", True      'set focus at send
SendKeys "~"       'sends the mail
End Sub



Thu, 07 Aug 2003 03:46:36 GMT  
 alternating email error?

Quote:

>I'm trying to automate sending an email, this code works every other time it
>runs.  When it doesn't work, the first send keys enters the email address
>into the message title instead. Any ideas?

Sendkeys is *NOT* recommended due to these kinds of problems.  Instead
visit the Access Email FAQ at my website for ideas on how to do this
programmatically.

Tony
----
Tony Toews, Microsoft Access MVP
   Please respond only in the newsgroups so that others can
read the entire thread of messages.
   Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm



Sat, 09 Aug 2003 05:32:50 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Sending mail via alternate email account

2. Alternating Background colors in Datasheet Form

3. Alternate treeview control for Access 2000?

4. Highlight alternating group of records

5. alternate MailMerge RecordSource

6. e-mail (alternate idea)

7. Can Redemption use alternate MAPI profiles?

8. Alternate Cost Calculations

9. An alternate to selection.selectcurrentfont.

10. alternating failures

11. Alternate fonts

12. Flickering screen during spellcheck of alternate sections

 

 
Powered by phpBB® Forum Software