index 733d233a8f4b4d0fb792009ef30b1ce01e613f7c..922fe62d52bfe371216f2bb3688cc2ebefdd7804 100755 (executable)
--- a/scripts/roundup-reminder
+++ b/scripts/roundup-reminder
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-# $Id: roundup-reminder,v 1.5 2003-02-06 05:43:49 richard Exp $
+# $Id: roundup-reminder,v 1.6 2003-04-24 07:19:59 richard Exp $
'''
Simple script that emails all users of a tracker with the issues that
import sys, cStringIO, MimeWriter, smtplib
from roundup import instance, date
+from roundup.mailgw import openSMTPConnection
# open the instance
if len(sys.argv) != 2:
writer.lastpart()
# all done, send!
- smtp = smtplib.SMTP(db.config.MAILHOST)
+ smtp = openSMTPConnection(db.config)
smtp.sendmail(db.config.ADMIN_EMAIL, address, message.getvalue())
# vim: set filetype=python ts=4 sw=4 et si