- forgot one import in last commit :-|
git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@148 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
99e1b930c9
commit
de82385b05
|
@ -2,7 +2,7 @@
|
|||
# -----------------------------------------------------------
|
||||
# copyright : (C) 2002 by Gernot Hillier
|
||||
# email : gernot@hillier.de
|
||||
# version : $Revision: 1.12 $
|
||||
# version : $Revision: 1.13 $
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -248,7 +248,7 @@ def sendMIMEMail(mail_from,mail_to,mail_subject,mail_type,text,attachment):
|
|||
# @param mail_subject the subject of the mail
|
||||
# @param text a string containing the text of the first part of the mail
|
||||
def sendSimpleMail(mail_from,mail_to,mail_subject,text):
|
||||
import email.Encoders, email.MIMEText, popen2, sys,capisuite
|
||||
import email.Encoders,email.MIMEText,encodings.ascii,popen2,sys,capisuite
|
||||
# Create a text/plain message. Don't forget to change charset here
|
||||
# if you want to use non-us-ascii characters in the mail!
|
||||
msg = email.MIMEText.MIMEText(text)
|
||||
|
@ -341,6 +341,9 @@ def sayNumber(call,number,curr_user,config):
|
|||
capisuite.audio_send(call,getAudio(config,curr_user,i+".la"),1)
|
||||
|
||||
# $Log: cs_helpers.pyin,v $
|
||||
# Revision 1.13 2003/07/21 17:44:07 gernot
|
||||
# - forgot one import in last commit :-|
|
||||
#
|
||||
# Revision 1.12 2003/07/20 10:27:51 gernot
|
||||
# - workaround for Python RuntimeError "cannot unmarshal code objects in
|
||||
# restricted execution mode", thx to Sander Roest for finally finding
|
||||
|
|
Loading…
Reference in New Issue