Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 To: rose cruz
  Where is rose cruz?
 navotas
 Philippines
 rose cruz
 Tags
Subject: RE: Lotus Notes Auto Email.
Thread ID: 228753 Message ID: 228765 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Thursday, May 21, 2009 12:21:10 PM         
   


> Hi,
> Good Day,
>
> With regards to the link (trend) below. My email is close, how can I open an email and supply my password automatically.
>
> https://www.foxite.com/archives/mail-from-vfp-lotus-notes-0000055511.htm
>
>
> Thanks and Godbless...

lcErrorHandler = ON("ERROR")
ON ERROR STORE .T. TO llErr
loNotesSession = CREATEOBJECT("Lotus.NotesSession")
ON ERROR &lcErrorHandler
IF TYPE("loNotesSession")#'O' .OR. ISNULL(loNotesSession)
   IF !plQuiet
      MESSAGEBOX("Lotus Notes/Domino COM cannot be loaded.  Check to see that you have Lotus Notes R5 or Lotus Domino R5 loaded on your workstation.",16)
   ENDIF
   RETURN .F.
ENDIF
ON ERROR STORE .T. TO llErr
loNotesSession.initialize(pcPassword)
ON ERROR &lcErrorHandler
IF TYPE("loNotesSession.username")#'C' .OR. EMPTY(loNotesSession.username)
   IF !plQuiet
      MESSAGEBOX("The password you specified was not valid.",16)
   ENDIF
   loNotesSession = .NULL.
   RETURN .F.
ENDIF
lcUserName = loNotesSession.username


Mike Gagnon
Refox XI +(English version)

ENTIRE THREAD

Lotus Notes Auto Email. Posted by rose cruz @ 5/21/2009 10:31:27 AM
RE: Lotus Notes Auto Email. Posted by Mike Gagnon @ 5/21/2009 12:21:10 PM
RE: Lotus Notes Auto Email. Posted by rose cruz @ 5/23/2009 5:47:41 AM
RE: Lotus Notes Auto Email. Posted by Mike Gagnon @ 5/23/2009 12:57:36 PM
RE: Lotus Notes Auto Email. Posted by rose cruz @ 5/25/2009 3:46:04 AM
RE: Lotus Notes Auto Email. Posted by Mike Gagnon @ 5/26/2009 12:12:40 PM
RE: Lotus Notes Auto Email. Posted by vece walet @ 5/27/2009 4:45:49 AM