<?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: sending mail thru a jsp in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296363#M72278</link>
    <description>Try the jsp attached, it uses javamail class, it works fine in my host.&lt;BR /&gt;It is better than your approach using sendmail.&lt;BR /&gt;just substitute smtp.telepac.pt with yours smtp host.&lt;BR /&gt;&lt;BR /&gt;Joao Mendes&lt;BR /&gt;Portugal</description>
    <pubDate>Mon, 07 Jun 2004 03:37:29 GMT</pubDate>
    <dc:creator>Joao Mendes</dc:creator>
    <dc:date>2004-06-07T03:37:29Z</dc:date>
    <item>
      <title>sending mail thru a jsp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296360#M72275</link>
      <description>I am trying to send mail using sendmail on linux redhat 9.0 on a jsp page. i am executing from Runtime calss' exec(string),&lt;BR /&gt;where the string is&lt;BR /&gt;String string[]={"/bin/sh","-c","sendmail rec@hisadd.com","&lt;MESSAGEFILE&gt;&lt;/MESSAGEFILE&gt;thte commend worked fine on command line but not working thru' jsp, any problem in my approach.</description>
      <pubDate>Fri, 04 Jun 2004 10:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296360#M72275</guid>
      <dc:creator>vasudha_2</dc:creator>
      <dc:date>2004-06-04T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: sending mail thru a jsp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296361#M72276</link>
      <description>check dns setup&lt;BR /&gt;&lt;BR /&gt;nslookup hisadd.com&lt;BR /&gt;&lt;BR /&gt;If you get an answer sendmail should send.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mailq&lt;BR /&gt;See if your message is being queued but not delievered&lt;BR /&gt;sendmail -q -v &lt;BR /&gt;see the error.&lt;BR /&gt;&lt;BR /&gt;Respond to the error.&lt;BR /&gt;Make sure sendmail is not got a DS directive in sendmail.cf&lt;BR /&gt;&lt;BR /&gt;You do not want to try relaying mail off your isp' smtp server unless they allow that.&lt;BR /&gt;&lt;BR /&gt;You might need to check with your isp. Some are thinking about blocking outbound port 25 traffic to keep their customers from sending spam.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 04 Jun 2004 10:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296361#M72276</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-06-04T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: sending mail thru a jsp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296362#M72277</link>
      <description>What error are you getting when that is exec'd?&lt;BR /&gt;&lt;BR /&gt;Three possible errors I can see are these:&lt;BR /&gt;&lt;BR /&gt;Path in an exec environment probably doesn't have either '/usr/sbin' or '/usr/lib' thus 'sendmail' on it's own (not path'd) won't work.&lt;BR /&gt;&lt;BR /&gt;The '&amp;lt; messagefile' requires that 'messagefile' be in the current-working-directory.  Unless you can gaurantee that the CWD has 'messagefile', use the full path to it.&lt;BR /&gt;&lt;BR /&gt;Given the manner in which you're populating the String, I'd assume that each individual argument is supposed to be on it's own.  You're stacking 'sendmail' and 'rec@hisadd.com' on top of each other.  Try separating these as well.&lt;BR /&gt;&lt;BR /&gt;So in summary, try this:&lt;BR /&gt;&lt;BR /&gt;String string[]={"/bin/sh", "-c", "/usr/lib/sendmail", "rec@hisadd.com", "&amp;lt; /full/path/to/messagefile"};</description>
      <pubDate>Sun, 06 Jun 2004 18:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296362#M72277</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-06-06T18:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: sending mail thru a jsp</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296363#M72278</link>
      <description>Try the jsp attached, it uses javamail class, it works fine in my host.&lt;BR /&gt;It is better than your approach using sendmail.&lt;BR /&gt;just substitute smtp.telepac.pt with yours smtp host.&lt;BR /&gt;&lt;BR /&gt;Joao Mendes&lt;BR /&gt;Portugal</description>
      <pubDate>Mon, 07 Jun 2004 03:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sending-mail-thru-a-jsp/m-p/3296363#M72278</guid>
      <dc:creator>Joao Mendes</dc:creator>
      <dc:date>2004-06-07T03:37:29Z</dc:date>
    </item>
  </channel>
</rss>

