From: richard Date: Wed, 11 Feb 2004 00:21:46 +0000 (+0000) Subject: fix for new mailer API X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7e298d9cbdc775768f91d20b64adc4daf788e50a;p=roundup.git fix for new mailer API git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2069 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/scripts/roundup-reminder b/scripts/roundup-reminder index a4db8fc..69a064a 100755 --- a/scripts/roundup-reminder +++ b/scripts/roundup-reminder @@ -19,7 +19,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# $Id: roundup-reminder,v 1.7 2004-02-11 00:00:01 richard Exp $ +# $Id: roundup-reminder,v 1.8 2004-02-11 00:21:46 richard Exp $ ''' Simple script that emails all users of a tracker with the issues that @@ -31,7 +31,7 @@ TODO: possibly make this more general and configurable... import sys, cStringIO, MimeWriter, smtplib from roundup import instance, date -from roundup.mailgw import openSMTPConnection +from roundup.mailer import SMTPConnection # open the instance if len(sys.argv) != 2: @@ -164,7 +164,7 @@ and click on "My Issues". Do NOT respond to this message. writer.lastpart() # all done, send! - smtp = openSMTPConnection(db.config) + smtp = SMTPConnection(db.config) smtp.sendmail(db.config.ADMIN_EMAIL, address, message.getvalue()) # vim: set filetype=python ts=4 sw=4 et si