Skip to content

Commit 012750d

Browse files
author
Richard Jones
committed
fix for new mailer API
1 parent 8a7164e commit 012750d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/roundup-reminder

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
# SOFTWARE.
2121

22-
# $Id: roundup-reminder,v 1.7 2004-02-11 00:00:01 richard Exp $
22+
# $Id: roundup-reminder,v 1.8 2004-02-11 00:21:46 richard Exp $
2323

2424
'''
2525
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...
3131

3232
import sys, cStringIO, MimeWriter, smtplib
3333
from roundup import instance, date
34-
from roundup.mailgw import openSMTPConnection
34+
from roundup.mailer import SMTPConnection
3535

3636
# open the instance
3737
if len(sys.argv) != 2:
@@ -164,7 +164,7 @@ and click on "My Issues". Do NOT respond to this message.
164164
writer.lastpart()
165165

166166
# all done, send!
167-
smtp = openSMTPConnection(db.config)
167+
smtp = SMTPConnection(db.config)
168168
smtp.sendmail(db.config.ADMIN_EMAIL, address, message.getvalue())
169169

170170
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)