Changeset 1718 for trunk


Ignore:
Timestamp:
Nov 18, 2008, 12:07:35 PM (16 years ago)
Author:
price
Message:

include a return address in error mail

outgoing.mit.edu requires this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/main.py

    r1707 r1718  
    646646%s
    647647""" % (to, config.web.hostname, subject, body)
    648     p = subprocess.Popen(['/usr/sbin/sendmail', to], stdin=subprocess.PIPE)
     648    p = subprocess.Popen(['/usr/sbin/sendmail', '-f', to, to],
     649                         stdin=subprocess.PIPE)
    649650    p.stdin.write(mail)
    650651    p.stdin.close()
Note: See TracChangeset for help on using the changeset viewer.