Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending mails through GroupWise with attachment
Message
De
11/10/2001 16:00:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00542261
Message ID:
00567198
Vues:
68
This message has been marked as a message which has helped to the initial question of the thread.
Actually, if all you want to do is send a simple email to the developers its as easy as writing 2 low-level IO text files.

You need to make sure that they have the API gateway installed for your Groupwise setup. You will need to get the main API gateway path from the system admins.

The main API gateway directory has 2 sub-directories:

API_IN where you create the message header file
ATT_IN where you create the message text file and put attachment files.

Here is a simple example:

HEADER FILE:
=============
cHeaderFile=YourAPIGatewayPath+'/API_IN/'+YourUniqueFileName
nHeader=fcreate(cHeaderFile,0)
=fputs(nheader,"WPC-API=1.2;")
=fputs(nheader,"Msg-Type=Mail;")
=fputs(nheader,"To=" + EmailAdrressToSendTo + ";")
=fputs(nheader,"To-Cc=" + EmailAdrressToSendTo + ";")
=fputs(nheader,"Subject=" + "YourSubject" + ";")
=fputs(nheader,"From=" + EmailAddressofSender + ";")
=fputs(nheader,"From-Text=" + NameofSender + " ;")
=fputs(nheader,"Msg-File=" + NameofMessageFile +";")
=fputs(nheader,"-END-")
=fclose(nheader)

if you have also an attachement, you can insert this before the END statement:

=fputs(nheader,"ATTACH-FILE=")
=fputs(nheader,"Current-File="+NameofAttachmentFile +";")


MESSAGE FILE:
==============
cMessageFile=YourAPIGatewayPath+'/ATT_IN/'+YourUniqueFileName
nMessage=fcreate(cMessageFile,0)
=fputs(nMessage,"Bla bla bla")
=fputs(nMessage,"and again more")
=fputs(nMessage,"bla bla bla")
=fclose(nMessage)


Hope this help if you still want to do it ;)

Pascal Charbonneau
Visual Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform