Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending e-mail from COM in ASP page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Sending e-mail from COM in ASP page
Divers
Thread ID:
00603807
Message ID:
00603807
Vues:
63
I am trying to incoroporate an "e-mail confirmation" into a com/asp application. I have tried about 5 different versions of "send mail" programs, all of which work when called from the vfp command line, and none of them will work when called through the asp page. Reactions vary from simply locking up the web server to returning an error 1429. Currently my code is as follows:
   * ----------------
   *
   *Create a MAPI Session object then Logon. The Logon dialog can be
   *bypassed by providing a valid ProfileName as the first parameter
   *(as a string) to the Logon Method.
   objSession = CREATEOBJECT("mapi.session")
   objSession.Logon("bpaserv")

   *Create a new message in the Outbox
   objMessage = objSession.Outbox.Messages.Add

   *Populate a few basic properties of the message
   objMessage.Subject = mSubject
   objMessage.Text = mText

   *Add a Recipient to the message we just created and resolve
   objRecip = objMessage.Recipients.Add
   *Alias of who you are sending to
   objRecip.name = mRecipient
   objRecip.Resolve

   *Send it
   objMessage.Send

   *Clean up then bail
   objSession.Logoff
   RELEASE objRecip, objMessage, objSession
   *EOP: AM_BareBones.PRG
Does anyone know why everything is failing here in this situation and what I can do to fix it?

Thanks.

P.S.: I am developing on WinXP Pro w/ VFP7 and deploying on Win2K Server.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform