pKa/prepare_for_pKa_design.py
def send_email(address,message):
    """Send an email to the address saying that prepration for the dir is done"""
    import smtplib
    from email.MIMEText import MIMEText
    from email.MIMEMultipart import MIMEMultipart
    from email.MIMENonMultipart import MIMENonMultipart
    from email.MIMEBase import MIMEBase
    from email import Encoders
    import mimetypes
    #
    # Prepare the message
    #
    text=message
    text_mes=MIMEText(text)
    message=MIMEMultipart()
    message.preamble='pKD message'
    message.epilogue = ''
    message['Subject']='Message from pKD server'
    message['From']='pKD Server <pka@ucd.ie>' 
    message['Reply-To']='pka@ucd.ie'
    message['To']=address
    message.attach(text_mes)
    #
    # Send the email
    #
    #sys.stdout=X
    try:
        server=smtplib.SMTP('193.1.169.34') #mail.ucd.ie
        server.set_debuglevel(1)
        server.login('jensniel','alpha2')
        server.sendmail('pka@ucd.ie',address,message.as_string())
        server.quit()
    except:
        pass
    return
Send an email to the address saying that prepration for the dir is done
Send an email to the address saying that prepration for the dir is done
Send an email to the address saying that prepration for the dir is done
def send_email(address,message):
    import smtplib
    from email.MIMEText import MIMEText
    from email.MIMEMultipart import MIMEMultipart
    from email.MIMENonMultipart import MIMENonMultipart
    from email.MIMEBase import MIMEBase
    from email import Encoders
    import mimetypes
     Prepare the message
    text=message
    text_mes=MIMEText(text)
    message=MIMEMultipart()
    message.preamble='pKD message'
    message.epilogue = ''
    message['Subject']='Message from pKD server'
    message['From']='pKD Server <pka@ucd.ie>' 
    message['Reply-To']='pka@ucd.ie'
    message['To']=address
    message.attach(text_mes)
     Send the email
    sys.stdout=X
    try:
        server=smtplib.SMTP('193.1.169.34') mail.ucd.ie
        server.set_debuglevel(1)
        server.login('jensniel','alpha2')
        server.sendmail('pka@ucd.ie',address,message.as_string())
        server.quit()
    except:
        pass
    return
def send_email ( address , message ) : import smtplib from email . MIMEText import MIMEText from email . MIMEMultipart import MIMEMultipart from email . MIMENonMultipart import MIMENonMultipart from email . MIMEBase import MIMEBase from email import Encoders import mimetypes text = message text_mes = MIMEText ( text ) message = MIMEMultipart ( ) message . preamble = 'pKD message' message . epilogue = '' message [ 'Subject' ] = 'Message from pKD server' message [ 'From' ] = 'pKD Server <pka@ucd.ie>' message [ 'Reply-To' ] = 'pka@ucd.ie' message [ 'To' ] = address message . attach ( text_mes ) try : server = smtplib . SMTP ( '193.1.169.34' ) server . set_debuglevel ( 1 ) server . login ( 'jensniel' , 'alpha2' ) server . sendmail ( 'pka@ucd.ie' , address , message . as_string ( ) ) server . quit ( ) except : pass return
Send an email to the address saying that prepration for the dir is done
Send an email to the address saying that prepration for the dir is done
"""Send an email to the address saying that prepration for the dir is done""" # # Prepare the message # # # Send the email # #sys.stdout=X #mail.ucd.ie
address
message