Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending mails through GroupWise with attachment
Message
 
 
To
11/10/2001 16:00:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00542261
Message ID:
00567203
Views:
67
>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

Thanks, that's great.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform