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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only