Customer was having a problem when trying to run the following command (modified for general use):
OFCRUNPC RMTSYS(*CURRENT) CMD('NEWMAIL~[email protected]~ ~ ~Our Test Email~ ~C:\TEMP\Test.txt~1~1')  OPTION(*OTHER)
They received Error 32002 "Unspecified Error" from Outlook on their PC.


When adding an attachment via this command, Outlook will error if the message body is empty.  Since we strip leading and ending white space, the message body (6th parameter) shows up as an empty string, causing Outlook to return error 32002.  The user MUST enter some sort of text into this field when adding an attachment.
For formatting questions on this command, please use this knowledgebase article:
Creating an Email Message via the iSeries Office Integrator

Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: July 03, 2020