<?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 Re: Send mails via sendmail out from application in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128053#M803573</link>
    <description>If you want to hide the true sender, then you can use the Masquerade as (DM) macro in sendmail.cf &lt;BR /&gt;&lt;BR /&gt;- Graham</description>
    <pubDate>Tue, 25 Nov 2003 08:22:13 GMT</pubDate>
    <dc:creator>Graham Cameron_1</dc:creator>
    <dc:date>2003-11-25T08:22:13Z</dc:date>
    <item>
      <title>Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128048#M803568</link>
      <description>Gentlemen,&lt;BR /&gt;&lt;BR /&gt;we want to send out mails from an application.&lt;BR /&gt;Therefor the application create a tmp.-file &lt;BR /&gt;which contain all necessary information (e.g):&lt;BR /&gt;&lt;BR /&gt;-&amp;gt;&amp;gt;&amp;gt;&amp;gt; top of file&lt;BR /&gt;MAIL FROM: x.y@domain.com&lt;BR /&gt;RCPT TO: z.y@Ndomain.com&lt;BR /&gt;DATA&lt;BR /&gt;TO: x y &lt;X.Y&gt;&lt;BR /&gt;From: z y &lt;Z.Y&gt;&lt;BR /&gt;Date: Fri, 08 Aug 2003 20:57:47 +0001&lt;BR /&gt;Subject: Testmail&lt;BR /&gt;Nachrichtentext&lt;BR /&gt;.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;----end of file&lt;BR /&gt;&lt;BR /&gt;We used the following command:&lt;BR /&gt;cat tmp-file | sendmail -bs -fit-operations@domain.com&lt;BR /&gt;&lt;BR /&gt;What can I say, IT WORKS! BUT sendmail write out the following messages:&lt;BR /&gt;&lt;BR /&gt;220 norskehp. ESMTP Sendmail 8.9.3 (PHNE_24419)/8.7.1; Tue, 25 Nov)&lt;BR /&gt;250 x.y@domain.com... Sender ok&lt;BR /&gt;250 y.z@domain.com... Recipient ok&lt;BR /&gt;354 Enter mail, end with "." on a line by itself&lt;BR /&gt;250 MAA05087 Message accepted for delivery&lt;BR /&gt;503 Need MAIL before RCPT&lt;BR /&gt;503 Need MAIL command&lt;BR /&gt;500 Command unrecognized: "TO: x y &lt;X.Y&gt;"&lt;BR /&gt;500 Command unrecognized: "From: y z &lt;Y.Z&gt;"&lt;BR /&gt;500 Command unrecognized: "Date: Fri, 08 Aug 2003 20:57:47 +0001"&lt;BR /&gt;500 Command unrecognized: "Subject: Testmail"&lt;BR /&gt;500 Command unrecognized: "Nachrichtentext"&lt;BR /&gt;500 Command unrecognized: "."&lt;BR /&gt;&lt;BR /&gt;Any suggestions from the smart guys??&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Andraes&lt;/Y.Z&gt;&lt;/X.Y&gt;&lt;/Z.Y&gt;&lt;/X.Y&gt;</description>
      <pubDate>Tue, 25 Nov 2003 06:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128048#M803568</guid>
      <dc:creator>Andreas Schmitz_1</dc:creator>
      <dc:date>2003-11-25T06:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128049#M803569</link>
      <description>Could it be that you are confusing sendmail by packing things into your tmp file which it is actually responsible for adding ?&lt;BR /&gt;&lt;BR /&gt;Change your tmp file so it only contains the text of the message (don't need the closing dot either), and then use mailx to send the message. eg.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/mailx -s "Subject" x.y@domain.com &amp;lt; tmp-file&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Tue, 25 Nov 2003 06:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128049#M803569</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-11-25T06:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128050#M803570</link>
      <description>Are you sure it works ?!?&lt;BR /&gt;It seems it sends the lines after DATA to sendmail outside the data block, even though it should work the way you use it. So I would make sure if the text "Nachrichtentext" is indeed in the mail you receive...&lt;BR /&gt;&lt;BR /&gt;Graham's solution is a lot nicer, and more generic. The only limit is that your from address is the address of the user sending the mail, not the address you want to specify.&lt;BR /&gt;&lt;BR /&gt;Another thing you could try BTW:&lt;BR /&gt;cat tmpfile | telnet 0 25</description>
      <pubDate>Tue, 25 Nov 2003 08:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128050#M803570</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-25T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128051#M803571</link>
      <description>Hi Graham &amp;amp; Elmar,&lt;BR /&gt;&lt;BR /&gt;thanks for your ideas. But two weak points:&lt;BR /&gt;&lt;BR /&gt;1. mailx uses the sender of the processuser&lt;BR /&gt;2. cat tmpfile | telnet 0 25 also produces the same error messages &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Andreas</description>
      <pubDate>Tue, 25 Nov 2003 08:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128051#M803571</guid>
      <dc:creator>Andreas Schmitz_1</dc:creator>
      <dc:date>2003-11-25T08:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128052#M803572</link>
      <description>Sorry, but I didn't try it. But it can work. Strip the first 3 lines from tmpfile, and drop the last (dot) line.&lt;BR /&gt;Then call it the following way:&lt;BR /&gt;cat tmpfile | sendmail -fx.y@domain.com z.y@domain.com&lt;BR /&gt;&lt;BR /&gt;I have tried, and this works for me, so it should work for you too... You can even add a -F'&lt;REALNAME&gt;' to the sendmail arguments...&lt;/REALNAME&gt;</description>
      <pubDate>Tue, 25 Nov 2003 08:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128052#M803572</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-25T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128053#M803573</link>
      <description>If you want to hide the true sender, then you can use the Masquerade as (DM) macro in sendmail.cf &lt;BR /&gt;&lt;BR /&gt;- Graham</description>
      <pubDate>Tue, 25 Nov 2003 08:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128053#M803573</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-11-25T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128054#M803574</link>
      <description>Now the results of the german jury:&lt;BR /&gt;&lt;BR /&gt;ELMARS HINT HITS!&lt;BR /&gt;&lt;BR /&gt;Thanks to you all and have a nice day.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Andreas</description>
      <pubDate>Tue, 25 Nov 2003 08:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128054#M803574</guid>
      <dc:creator>Andreas Schmitz_1</dc:creator>
      <dc:date>2003-11-25T08:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Send mails via sendmail out from application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128055#M803575</link>
      <description>Gentlemen,&lt;BR /&gt;&lt;BR /&gt;we found the absolute solution:&lt;BR /&gt;&lt;BR /&gt;cat neu.txt | /usr/sbin/sendmail -t&lt;BR /&gt;&lt;BR /&gt;Then sendmail read also the SMTP tags.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-Andreas</description>
      <pubDate>Tue, 25 Nov 2003 08:46:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-mails-via-sendmail-out-from-application/m-p/3128055#M803575</guid>
      <dc:creator>Andreas Schmitz_1</dc:creator>
      <dc:date>2003-11-25T08:46:38Z</dc:date>
    </item>
  </channel>
</rss>

