<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to send attachments in a folder in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644704#M239675</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;i am able to use mailx to send mail with attachments (2).&lt;BR /&gt;What i would like to do is to be able to sending mail from a folder with 6 or 7 files ( the folder name and file names are dynamic and changing daily)as attachments.&lt;BR /&gt;&lt;BR /&gt;Can someone help me please?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
    <pubDate>Sat, 08 Oct 2005 03:59:59 GMT</pubDate>
    <dc:creator>tom quach_1</dc:creator>
    <dc:date>2005-10-08T03:59:59Z</dc:date>
    <item>
      <title>how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644704#M239675</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;i am able to use mailx to send mail with attachments (2).&lt;BR /&gt;What i would like to do is to be able to sending mail from a folder with 6 or 7 files ( the folder name and file names are dynamic and changing daily)as attachments.&lt;BR /&gt;&lt;BR /&gt;Can someone help me please?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Sat, 08 Oct 2005 03:59:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644704#M239675</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-10-08T03:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644705#M239676</link>
      <description>to accomplish this, you need to be able to somehow determine the foldername as it also is variable. There must be some characteristic of this name, creation time or something.&lt;BR /&gt;&lt;BR /&gt;TEMPFILE=/tmp/temp$RANDOM&lt;BR /&gt;if [ -a $TEMPFILE ]&lt;BR /&gt;then &lt;BR /&gt;rm $TEMPFILE&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;FOLDERNAME=/Some/Folder&lt;BR /&gt;cd $FOLDERNAME&lt;BR /&gt;for file in `ls`&lt;BR /&gt;do&lt;BR /&gt;uuencode $file $file &amp;gt;&amp;gt; $TEMPFILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;cat $TEMPFILE | mailx -m -s "Subject line here" user@domain.com&lt;BR /&gt;&lt;BR /&gt;rm $TEMPFILE #if you wish&lt;BR /&gt;&lt;BR /&gt;note that, this will not deliver the files to the recipient as a single folder as there is no such concept in exchange servers, only files can be atached, not folders. So, the recipint will get a message with multiple attachments.&lt;BR /&gt;&lt;BR /&gt;I tested with 2 files and it works</description>
      <pubDate>Sat, 08 Oct 2005 05:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644705#M239676</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-08T05:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644706#M239677</link>
      <description>&lt;BR /&gt;Thanks Mel Burslan FOR YOUR HELP&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;TEMPFILE=/tmp/tomtest&lt;BR /&gt;if [ -a $TEMPFILE ]&lt;BR /&gt;then&lt;BR /&gt;rm $TEMPFILE&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;FOLDERNAME=/tmp/perf*&lt;BR /&gt;cd $FOLDERNAME&lt;BR /&gt;for file in `ls`&lt;BR /&gt;do&lt;BR /&gt;uuencode $file $file &amp;gt;&amp;gt; $TEMPFILE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;cat $TEMPFILE |mailx -m -s "testing" tquach@sunrider.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--somehow this line&lt;BR /&gt;uuencode $file $file &amp;gt;&amp;gt; $TEMPFILE &lt;BR /&gt;it appended all contents of files to this file $TEMPFILE&lt;BR /&gt;an so there is no attachment.&lt;BR /&gt;the " perf* " is a dynamic folder.&lt;BR /&gt;Would you please advice.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom</description>
      <pubDate>Sun, 09 Oct 2005 01:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644706#M239677</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-10-09T01:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644707#M239678</link>
      <description>appending to the same file is the nature of the script. each individual attachment will have a start and end descriptor, which any exchange server will understand and separate at the receiving end.&lt;BR /&gt;&lt;BR /&gt;I have tested this script with a folder with 2 files in it and and I have received, on my exchange server account, 2 files attached to an email message.&lt;BR /&gt;&lt;BR /&gt;and the random number makes your temp file a different name every time it runs. Of course there is a chance of getting the same random number, so, you are strongly encouraged to run the "rm" command once you are done with a batch of files to remove the temp file.&lt;BR /&gt;hope this helps.</description>
      <pubDate>Sun, 09 Oct 2005 13:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644707#M239678</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-09T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644708#M239679</link>
      <description>Zip them up first, any way you want.&lt;BR /&gt;&lt;BR /&gt;Then use this script to send them as an attachment:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Do take note of the fact that smtp relay programs that are not properly patched can and have made it impossible to send attachments. If my script doesn't work (this is my improvement on an HP doc), check that your smtp relay or mail engine is up to date.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 09 Oct 2005 18:45:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644708#M239679</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-10-09T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644709#M239680</link>
      <description>Thanks Mel Burslan &amp;amp; steven,&lt;BR /&gt;&lt;BR /&gt;Mel, your script works. The reason, it did not work before, because the size of  file hit the limit on my Unix server.  tested it with many smaller files and it works as expected. Tested the same file using yahoo account sent to my exchange account and received it without a problem. So my Unix server is the source of the problem.&lt;BR /&gt;Does anyone know how to increase the size limit to send out mail from hpux.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 03:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644709#M239680</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-10-10T03:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644710#M239681</link>
      <description>If you use sendmail, there is an option in /etc/mail/sendmail.cf to increase mail size, &lt;BR /&gt;&lt;BR /&gt;#  Maximum message size (option MaxMessageSize):                               #&lt;BR /&gt;#                                                                              #&lt;BR /&gt;#      This option restricts the maximum message (in bytes) that sendmail will #&lt;BR /&gt;#      accept from a remote system. If a message larger that this limit is     #&lt;BR /&gt;#      originated form the local system, the message will be truncated to the  #&lt;BR /&gt;#      limit.                                                                  #&lt;BR /&gt;#                                                                              #&lt;BR /&gt;#      To enable this feature uncomment the line:                              #&lt;BR /&gt;#                                                                              #&lt;BR /&gt;#              O MaxMessageSize=100000                                         #&lt;BR /&gt;#                                                                              #&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 10 Oct 2005 03:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644710#M239681</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-10-10T03:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to send attachments in a folder</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644711#M239682</link>
      <description>&lt;BR /&gt;Hi-Arun:&lt;BR /&gt;&lt;BR /&gt;Change it to 15Mb but it still won't send out mail larger than 4.5Mb&lt;BR /&gt;I am using mailx.&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 11 Oct 2005 00:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-attachments-in-a-folder/m-p/3644711#M239682</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-10-11T00:08:40Z</dc:date>
    </item>
  </channel>
</rss>

