equal
deleted
inserted
replaced
10 |
10 |
11 #You should have received a copy of the GNU General Public License |
11 #You should have received a copy of the GNU General Public License |
12 #along with this program; if not, see <http://www.gnu.org/licenses/>. |
12 #along with this program; if not, see <http://www.gnu.org/licenses/>. |
13 |
13 |
14 from email.mime.text import MIMEText |
14 from email.mime.text import MIMEText |
|
15 from email.header import Header |
15 |
16 |
16 class content: |
17 class content: |
17 def __init__(self,content): |
18 def __init__(self,content): |
18 self.content=content |
19 self.content=content |
19 |
20 |
36 def sendto(self,anbieter,recipients): |
37 def sendto(self,anbieter,recipients): |
37 anbieter.sendFAX(self,recipients) |
38 anbieter.sendFAX(self,recipients) |
38 |
39 |
39 class Mail(content): |
40 class Mail(content): |
40 def __init__(self, subject, body): |
41 def __init__(self, subject, body): |
41 con=MIMEText(body) |
42 con=MIMEText(body.encode("utf-8"), _charset='utf-8') |
42 con['Subject']=subject |
43 sub=Header(subject.encode('utf-8'), 'utf-8') |
|
44 con['Subject']=sub |
43 content.__init__(self, con) |
45 content.__init__(self, con) |
44 |
46 |
45 def sendto(self,anbieter,recipients): |
47 def sendto(self,anbieter,recipients): |
46 anbieter.sendMail(self,recipients) |
48 anbieter.sendMail(self,recipients) |
47 |
49 |