a.binder 8 yıl önce
ebeveyn
işleme
a6e01dc446

+ 2 - 0
SE/schema/WPS_Functions/send_email/build_send_email.xml

@@ -17,6 +17,7 @@
       <input addproperty="antFunctionUrl" message="like https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&amp;_task=ant&amp;path=default_db.in7_dziennik_koresp/etykieta&amp;template=buildpdf_recursed_xsl_mail&amp;typeName=default_db:IN7_DZIENNIK_KORESP&amp;primaryKey=63007&amp;primaryKeyField=ID" />
       <input addproperty="confirmAntfile" message="path to ant file to confirm something" />
       <input addproperty="confirmAntfileTarget" message="name of target to confirm something" />
+      <input addproperty="out.pdf"/>
       <!--<property name="send_email.xml_to_parse.xml" location="/opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/temp/recurse_ant/62888prezes1/62888prezes1_out_task_dita_final.dita"/>-->
       <tempfile property="send_email.send_email_from_xml_parsed.xml" destdir="${send_email.temp}" prefix="send_email.send_email_from_xml_parsed." suffix=".xml"/>
       <tempfile property="send_email.send_email_from_xml_parsed.build.xml" destdir="${send_email.temp}" prefix="send_email.send_email_from_xml_parsed.build.xml" suffix=".xml" deleteonexit="false"/>
@@ -50,6 +51,7 @@
          <param name="antFunctionUrl" expression="${antFunctionUrl}"/>
          <param name="confirmAntfile" expression="${send_email.send_email_from_xml_parsed.build.xml}"/>
          <param name="confirmAntfileTarget" expression="${confirmAntfileTarget}"/>
+         <param name="out.pdf" expression="${out.pdf}"/>
       </xslt>
       
       <ant antfile="${send_email.send_email_from_xml_parsed.build.xml}" target="send_email.send_email_from_xml_parsed.build.xml.to.confirm"/>

+ 7 - 2
SE/schema/WPS_Functions/send_email/send_email.xsl

@@ -83,11 +83,16 @@
                 <xsl:for-each select="send_email:send_email.send_email_from_xml_parsed.xml.child">
                     <target name="send_email.send_email_from_xml_parsed.build.xml.confirm.{position()}">
                     <echo>Sending message to <xsl:value-of select="."/></echo>
-                        <mail from="a.binder@biall-net.pl" failonerror="false"
+                        <!--<mail from="a.binder@biall-net.pl" failonerror="false"
                             tolist="{text()}">
                             <xsl:attribute name="subject">${send_email.send_email_from_xml_parsed.build.xml.title}</xsl:attribute>
                             <message>Test wiadomosci</message>
-                        </mail>
+                        </mail>-->
+                        <exec executable="mutt">
+                            <xsl:attribute name="inputstring">${send_email.send_email_from_xml_parsed.build.xml.title}</xsl:attribute>
+                            <arg line='-a "${out.pdf}"'/>
+                            <arg line='-s "Wiadomosc"'/>
+                        </exec>
                     </target>
                 </xsl:for-each>
             

+ 2 - 0
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/etykieta/build_recurse_ant.xml

@@ -1197,6 +1197,7 @@
             <param name="antFunctionUrl" value="${antFunctionUrl}"/>
             <param name="confirmAntfile" value="${confirmAntfile}"/>
             <param name="confirmAntfileTarget" value="${confirmAntfileTarget}"/>
+            <param name="out.pdf" value="${user.dir}/${out}/${out_task.dita.final.noext}.pdf"/>
         </antcall>
         <!--<echo message="OUTPUT__START"/>-->
         <echo>
@@ -1221,6 +1222,7 @@
             $outputFunctionUrl = ${outputFunctionUrl}
             $antFunctionUrl = ${antFunctionUrl}
             $confirmAntfile = ${confirmAntfile} / $confirmAntfileTarget = ${confirmAntfileTarget}
+            
             &lt;br/&gt; 
         </echo>
         <!--<echo>