scripts/jabber/fonctions.py
Antoine Durand-Gasselin 29e2ecae71 [jabber] Finalisation de la migration à ejabberd
Ignore-this: e5b71a7f580e1db950bb30d9d7745fbe
 * une vcard est automatiquement créée avec FN et EMAIL
 * lostPassword.py envoie un mail aux nounous
 * images et css plus accessibles

darcs-hash:20090809213427-bd074-19f0565242fb93d2051347eb47289e096bce00d9.gz
2009-08-09 23:34:27 +02:00

17 lines
384 B
Python
Executable file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import string, re, sys, os
# # # # # # # # # # # # # # #
# Envoyer des e-mails #
# # # # # # # # # # # # # # #
SENDMAIL = "/usr/sbin/sendmail" # sendmail location
def sendmail(text):
p = os.popen("%s -t" % SENDMAIL, "w")
p.write(text)
sts = p.close()
if sts != None:
print "Sendmail exit status :", sts