When I use the TEXTATTACHMENT parameter on a EMAIL SEND request, I see the message in the email followed by the contents of the text file I attached. The mail server is not Outlook 365. Are there any error messages logged in the Email service log file?
C:\>STAF local email SEND TO myem...@company.com SUBJECT "Attachment Test" MESSAGE "This is a test of attaching a text file" TEXTATTACHMENT C:\stax\test.txt Response -------- For example, to see the last 10 records in the Email service log file, submit a LOG QUERY request like the following: C:\>STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME Email LAST 10 Response -------- Date-Time Level Message ----------------- ----- ------------------------------------------------------- 20150609-13:16:04 Info Email service initialized, using mailserver xx.xxxx.ib m.com port 25 backupmailservers [xx.xxxxx.ibm.com] 20150614-13:20:21 Info [local://local:461] SEND TO [myem...@company.com] CC [] B CC [] FROM stafemailserv...@xxxxx.austin.ibm.com SUBJEC T Attachment Test CONTENTTYPE text/plain TEXTATTACHMENT S [C:\stax\test.txt] ATTACHMENTMACHINE local://local 20150614-13:20:22 Info [local://local:461] 220 xxxxxxx.xxxxxxx.ibm.com ESMTP S endmail 8.14.4/8.14.4/NCO v10.0 AVin; Sun, 14 Jun 2015 12:20:21 -0600 20150614-13:20:22 Info [local://local:461] 250 xxxxxxx.xxxxxxx.ibm.com Hello s ig-9-99-99-99.ibm.com [9.99.99.99], pleased to meet you 20150614-13:20:22 Info [local://local:461] 250 2.1.0 stafemailserv...@xxxxx.au stin.ibm.com... Sender ok 20150614-13:20:23 Info [local://local:461] 250 2.1.5 myem...@company.com... Reci pient ok 20150614-13:20:23 Info [local://local:461] Before send DATA 20150614-13:20:23 Info [local://local:461] Reply from DATA 354 Enter mail, end with "." on a line by itself 20150614-13:20:23 Info [local://local:461] 354 Enter mail, end with "." on a l ine by itself 20150614-13:20:23 Info [local://local:461] 250 2.0.0 t5EIKLPn004730 Message ac cepted for delivery The email I received with the text attachment looked like the following where it contained the message followed by the contents of the text file: DATA To: , myem...@company.com Subject: Attachment Test From: stafemailserv...@xxxxx.austin.ibm.com Content-Type: multipart/mixed; boundary="DataSeparatorString" --DataSeparatorString Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit ****************************************************************** * DO NOT RESPOND TO THE SERVICE MACHINE THAT GENERATED THIS NOTE * ****************************************************************** This is a test of attaching a text file --DataSeparatorString Content-Type: text/plain; name="\test.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="\test.txt" Content-Description: Form Results Contents of my text file: This is line 1. This is line 2. This is line 3. --DataSeparatorString -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: Dong Ho <dong...@hgst.com> To: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net> Date: 06/12/2015 08:36 AM Subject: [staf-users] STAF Email Service empty message Hello, I’m using STAF Email Service to send test results to others but ran into a problem where the body of the message comes up empty/blank in the email whenever I use the TEXTATTACHMENT option to include an attachment. When I exclude the TEXTATTACHMENT parameter, the message body shows up fine in the email. Am I doing something wrong or is there a way to remedy this problem? The email client that is being used to send/receive emails is Outlook 365. Thank you. ------------------------------------------------------------------------------ _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users