blob: d0ed98fd18aff00e31fc5feec5583f2efe2fc2fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import smtplib
def send_mail( mail, subject, msg = '' ):
smtp_server = smtplib.SMTP( 'mail.%s' % mail.split( '@' )[-1] )
smtp_server.sendmail(
mail
, [ mail ]
, 'Subject: %s\n' % subject
+ 'To: %s\n' % mail
+ '\n'
+ msg
)
|