<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1092,15 +1092,16 @@ def sendmail(from_address, to_address, subject, message, headers=None, **kw):
         for r in recipients:
             assert not r.startswith('-'), 'security'
                 
+        cmd = [sendmail, '-f', from_address] + recipients
 
         if subprocess:
-            p = subprocess.Popen(['/usr/sbin/sendmail', '-f', from_address] + recipients, stdin=subprocess.PIPE)
+            p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
             p.stdin.write(message)
             p.stdin.close()
             p.wait()
         else:
             import os
-            i, o = os.popen2([&quot;/usr/lib/sendmail&quot;, '-f', from_address] + recipients)
+            i, o = os.popen2(cmd)
             i.write(message)
             i.close()
             o.close()</diff>
      <filename>web/utils.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9bcf147c7bc394fc235dd82cf39f7ab44fa5c5a6</id>
    </parent>
  </parents>
  <author>
    <name>Anand Chitipothu</name>
    <email>anandology@gmail.com</email>
  </author>
  <url>http://github.com/webpy/webpy/commit/cef03ac4eb50480faf4dafb66163ed97bcd19b9b</url>
  <id>cef03ac4eb50480faf4dafb66163ed97bcd19b9b</id>
  <committed-date>2009-06-27T19:01:58-07:00</committed-date>
  <authored-date>2009-06-27T19:01:58-07:00</authored-date>
  <message>use sendmail from web.config.sendmail_path (tx Daniel Schwartz)</message>
  <tree>48bfcadbb2acc901554481cd55589bff6bc23ef0</tree>
  <committer>
    <name>Anand Chitipothu</name>
    <email>anandology@gmail.com</email>
  </committer>
</commit>
