The message body still shows up blank whether I include NOHEADER or not. This problem only occurs when using TEXTATTACHMENT, otherwise any messages show up normally so it’s really bugging me. One other member suggested that it might be because I broke the email limit size of 40KB? Is there such a size limit for the email? For attachments? Otherwise it could just be the mail server that my company is using as you have stated.
From: Sharon Lucas [mailto:luc...@us.ibm.com] Sent: Monday, June 15, 2015 13:24 To: Dong Ho Cc: staf-users@lists.sourceforge.net Subject: RE: [staf-users] STAF Email Service empty message I used basically the same EMAIL SEND request -- different addresses but the same message, subject and with two text attachments and it worked fine with my company's SMTP mail server. The email contained the two attachments as well as the message "TEST MESSAGE" after the default header " in the body of the email as follows: ****************************************************************** * DO NOT RESPOND TO THE SERVICE MACHINE THAT GENERATED THIS NOTE * ****************************************************************** TEST MESSAGE So, the problem appears to be specific to the mail server that you're using. If you specify the NOHEADER option (to indicate that the "DO NOT RESPOND TO THE SERVICE MACHINE THAT GENERATED THIS NOTE" header should not be included at the beginning of the email body), do you see your message in the email? I'm not sure what else to suggest -- other than to try a different mail server if you have access to another one. -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com<mailto:luc...@us.ibm.com> (512) 286-7313 or Tieline 363-7313 From: Dong Ho <dong...@hgst.com<mailto:dong...@hgst.com>> To: Sharon Lucas/Austin/IBM@IBMUS, "staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>" <staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>> Date: 06/15/2015 01:12 PM Subject: RE: [staf-users] STAF Email Service empty message ________________________________ The command I used is: staf local email SEND TO em...@company.com<mailto:em...@company.com>FROM ema...@company.com<mailto:ema...@company.com>CC ema...@company.com<mailto:ema...@company.com>CC ema...@company.com<mailto:ema...@company.com>CC ema...@company.com<mailto:ema...@company.com>MESSAGE “TEST MESSAGE” SUBJECT “Test Subject” TEXTATTACHMENT /tmp/test_results.html TEXTATTACHMENT /tmp/test_result2.txt The email log query did not report any errors and it seems like everything has gone through, but my message “TEST MESSAGE” does not appear in the email and it just shows up blank. All attachments are accounted for, though. Here is the output from email log query: Response -------- Date-Time Level Message ----------------- ----- ------------------------------------------------------- 20150615-10:53:14 Info [local://local:324446] 250 ok: Message 4636017 accepted 20150615-11:00:48 Info [local://local:328150] SEND TO [em...@hgst.com] CC [ema...@hgst.com, ema...@hgst.com<mailto:ema...@hgst.com>, ema...@hgst.com<mailto:ema...@hgst.com>] BCC [] FROM ema...@hgst.com<mailto:ema...@hgst.com> SUBJECT [Test Subject] CONTENTTYPE text/html TEXTATTACHMENTS [/tmp/test_results2.txt , /tmp/test_results.html] ATTACHMENTMACHINE local:/ /local 20150615-11:00:48 Info [local://local:328150] 220 sjappemgw12.hgst.com ESMTP 20150615-11:00:48 Info [local://local:328150] 250 sjappemgw12.hgst.com 20150615-11:00:48 Info [local://local:328150] 250 sender <ema...@hgst.com<mailto:ema...@hgst.com>> ok 20150615-11:00:48 Info [local://local:328150] 250 recipient <em...@hgst.com<mailto:em...@hgst.com>> ok 20150615-11:00:49 Info [local://local:328150] 250 recipient <ema...@hgst.com<mailto:ema...@hgst.com>> ok 20150615-11:01:45 Info [local://local:328150] 250 recipient <ema...@hgst.com<mailto:ema...@hgst.com>> ok 20150615-11:01:45 Info [local://local:328150] 250 recipient <ema...@hgst.com<mailto:ema...@hgst.com>> ok 20150615-11:01:45 Info [local://local:328150] 250 ok: Message 1902621 accepted From: Sharon Lucas [mailto:luc...@us.ibm.com] Sent: Sunday, June 14, 2015 11:44 To: staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>; Dong Ho Subject: Re: [staf-users] STAF Email Service empty message 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<mailto: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<mailto: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<mailto:stafemailserv...@xxxxx.au> stin.ibm.com... Sender ok 20150614-13:20:23 Info [local://local:461] 250 2.1.5 myem...@company.com<mailto: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<mailto:myem...@company.com> Subject: Attachment Test From: stafemailserv...@xxxxx.austin.ibm.com<mailto: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<mailto:luc...@us.ibm.com> (512) 286-7313 or Tieline 363-7313 From: Dong Ho <dong...@hgst.com<mailto:dong...@hgst.com>> To: "staf-users@lists.sourceforge.net<mailto:staf-users@lists.sourceforge.net>" <staf-users@lists.sourceforge.net<mailto: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<mailto: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