X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=brQd0bgzQc21GqIvm0QQqZ6ZFH9WX S+enk90zXa6kAL3hcRYmTaW4AnXmt9KQaU85svL+zYXRnBgND1aRYx1zV2sdMOga wR2dBeAReNjK1MkNOgN9v8jJnypa/wE7BO/la/SOZqDGjVZFMyggR08xqVNTj8J3 U3RR4Wb+OnzU3s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=INPYNZpA59jSQeNLHfD0EiuXM/Y=; b=ksa oSYX3yyY/AehmoP+g1P/pqDGHeg1rAbUAgmgHQwG9uW6+nQn1d2ILb6l3RZ2a4hK pZ44K5Rz62Hes2PcoGsHg1MrDD7SiAUSTrhG9ukWf2IZelHM4OGDRLSh4sEVxDqP JUt81nur/H/20lCZNQeiS+vLGJt+CG59gvrTEhwA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=D*SystematicSw.ab.ca, D*ab.ca, sk:briani, U*Brian.Inglis X-HELO: smtp02.bhnetwork.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dK4fY1g6P58sjlpGpzK/DBdFHElDtH96ZjZNPH0taj2iXNRshhUwt9+ZuZf6lfIAajSgOvAKEmfu6rUWHnhh1fIYeVbfdA4y+F+oqJX8Q8jqy4xCv3D5YvZWEmHvOdRfLiebqBAFBPxHu0rkZPATQLleJ1Cou3GudYFaG+SKyAO7+XLp+RZWh9WAx1qkr2sQ8xdUmIYU08WKEbVEczH1MhRbsJQ580AeLeW5os2GwZ/SnsUxep7h01w4ZOQRtHLVqdtfEmlEgcInfU6Qr9AJGV8EsbtS+0NARNBdzom0vDstw3zR87oPFQomS4twZuAnB7Qz5c5njI8gqeHfWe/yng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+7EooPmJEjPd9rkoEs1ZH7khMT190epZrrOR48sqqm4=; b=eoyzG4uyb2U+IoCmBbAmzpzYwwgDq2bxxXv73lA7uehjXbPB8nkWDA1i8FpEjrcUS3kDCcUq1IEQLQh136vioTw7w5jwfuh5Q+TAHC4ypL/Ok10rCT4YuqF/H+2WomuUNNzmdvuQbKJ3M9z872qNa0JsTniK2KdCnUQlEdVypm3lar6FvuV6ZqkxHNXfpBwzhBBN9+qdz+Mhf4HQ1CJMGLJkt8RmBBIMEpMgesVZUFumnp3EFK+EI8dG9c89GyzZWptnPkCju5afLU+gg3+H2gh856fq6Imp/T6wKbNlZMBw48BuIyYLb4IiPLA1rJsIDgME7YJbHuLiSJrlyx5W/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bhnetwork.com; dmarc=pass action=none header.from=bhnetwork.com; dkim=pass header.d=bhnetwork.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackhawknetwork.onmicrosoft.com; s=selector1-blackhawknetwork-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+7EooPmJEjPd9rkoEs1ZH7khMT190epZrrOR48sqqm4=; b=tbznRqNvL7B88wPcFiIAzNQgJ3Tr7gX3UiDtMQQ8oWw3bs8QdfK7c3PX5CDkbqpwsuDOKpJWyWaNzIDvr7BmaY4yhlX62jdta1UqHhhxvqURwI5tcfnjqxL8XIogauqruB1CcNkfpyUG31KBOzS/MNiawDPAT7MU7dpMX7BKHG8= From: Priyanka Joshi To: "Brian DOT Inglis AT SystematicSw DOT ab DOT ca" , "cygwin AT cygwin DOT com" Subject: RE: Issue with email -a (Zip files) Date: Fri, 31 Jan 2020 06:40:23 +0000 Message-ID: References: In-Reply-To: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Priyanka DOT Joshi AT bhnetwork DOT com; x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-messagedata: +NgpkrKjeX7z3+kccOYV5ku9HYtXBzHMVK5TwjDgow1TO1sTrj4IWaYxSQ+eSHELQsq2pIjqTlJUTxB0tWv0Y0LcS05ecHhnr3G868qnrugP3snCPovnVSE1svpWO81ZA2NmdgpjFzG7TsH4S6bbqA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fMz5i6vIX8ymTJA1q0MwnnVDGfGSLGDs/YgdlSn397cWaciUvM0eeZ+DpAv8FCUtxQQWJtHGUDrB4rS2FSJrHg== Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 00V6f55f031064 Thanks Brian! Can you please let me know if there is any way to check SMTP error logs for the email not getting sent. I am trying to enable the logs but facing issue with inetmgr.dll and smtpsnap.dll and not seeing SMTP option under IIS. PFB updates on the steps shared: >which email /usr/bin/email >email --version email - By Dean Jones; Version 3.2.3-git , try putting your xml in a zip file, and see if that works. ==>It worked >email -b -s "Test zip send" -a test.zip priyanka DOT joshi AT bhnetwork DOT com Try renaming the zip file as if xml or something safe ==>Tried renaming to xml but email was not triggered, I will check with the network team if there are any restrictions Regards, Priyanka -----Original Message----- From: Brian Inglis Sent: Friday, January 31, 2020 3:27 AM To: cygwin AT cygwin DOT com Cc: Priyanka Joshi Subject: Re: Issue with email -a (Zip files) On 2020-01-30 02:21, Priyanka Joshi wrote: > I am facing issue when I am trying to send zip file as attachment, > same command works fine for xml file. > > PFB commands for reference: > > Below command worked fine and sent testng.xml as attachment email -s > "BHN Test Automation Report" -a testng.xml > priyanka DOT joshi AT bhnetwork DOT com > > email -s "BHN Test Automation Report" -a allure-report.zip > priyanka DOT joshi AT bhnetwork DOT com ==> Not triggering any email and not throwing any error. > > Please let us know how to debug and fix the zip attachment issue. Cygwin email requires -b option flag, body text on stdin, or invokes your editor for body text entry to send emails. First, check location, version, and test: $ which email /usr/bin/email $ email --version email - By Dean Jones; Version 3.2.3-git $ email -b -s "Test zip send" -a Downloads/....zip above-email-address worked for me, with a random downloaded small zip file, also worked whether I echoed or redirected text into stdin, or did neither and typed body text into the editor window opened on a tmp file. Corporate networks often have filters and strict rules about what may be included in a zip file, may be both outgoing and incoming; they could even have Outlook, other email client, or generic email filters on your desktop system. Talk to your IT mail and security admins to find out what is filtered where. Try renaming the zip file as if xml or something safe, and see if that works, and if not, try putting your xml in a zip file, and see if that works. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple