Пример #1
0
def Resetpwd_Gmail(addrs, first_name, Ticket):
   import smtplib
   from email.mime.text import MIMEText
   from phc_config import hostadd
   from phc_email import phc_email
   
   subject = "Your PHCWEB password has been reset."
   msg_cont = """Hello %s,\n\n   Welcome to PHC Web Interface. Please click the following link to reset your password.\n\n
%s/cgi-bin/resetpwd.py?login=%s&ticket=%s""" % (first_name,hostadd,addrs,Ticket)
   
   phc_email(addrs, subject, msg_cont);
Пример #2
0
def Activate_Gmail(addrs, first_name, Ticket):
   import smtplib
   from email.mime.text import MIMEText
   from phc_config import hostadd
   from phc_email import phc_email

   subject = "Welcome %s to PHC Web Interface" % first_name
   msg_cont = """Hello %s,\n\n   Welcome to PHC Web Interface. Please click the following link to activate your account.\n\n
%s/cgi-bin/activate.py?login=%s&ticket=%s""" % (first_name,hostadd,addrs,Ticket)
   
   phc_email(addrs, subject, msg_cont);
Пример #3
0
def Resetpwd_Gmail(addrs, first_name, Ticket):
    import smtplib
    from email.mime.text import MIMEText
    from phc_config import hostadd
    from phc_email import phc_email

    subject = "Your PHCWEB password has been reset."
    msg_cont = """Hello %s,\n\n   Welcome to PHC Web Interface. Please click the following link to reset your password.\n\n
%s/cgi-bin/resetpwd.py?login=%s&ticket=%s""" % (first_name, hostadd, addrs,
                                                Ticket)

    phc_email(addrs, subject, msg_cont)
Пример #4
0
def Activate_Gmail(addrs, first_name, Ticket):
    import smtplib
    from email.mime.text import MIMEText
    from phc_config import hostadd
    from phc_email import phc_email

    subject = "Welcome %s to PHC Web Interface" % first_name
    msg_cont = """Hello %s,\n\n   Welcome to PHC Web Interface. Please click the following link to activate your account.\n\n
%s/cgi-bin/activate.py?login=%s&ticket=%s""" % (first_name, hostadd, addrs,
                                                Ticket)

    phc_email(addrs, subject, msg_cont)
Пример #5
0
def Contact_Email(infos):
    addrs = infos[0]
    msg_cont = " Welcome to PHC Web Interfact. You just left a message to us. We will reply to you as soon as possible. This is a copy of your message.\n\n From: %s\n First Name: %s \n Last Name: %s \n Org: %s \n\n Subject: %s\n\n Message: %s" % (
        infos[0], infos[1], infos[2], infos[3], infos[4], infos[5])
    subject = "%s : %s" % (infos[1], infos[4])
    error = phc_email(addrs, subject, msg_cont)
Пример #6
0
def Contact_Email(infos):
   addrs = infos[0]
   msg_cont = " Welcome to PHC Web Interfact. You just left a message to us. We will reply to you as soon as possible. This is a copy of your message.\n\n From: %s\n First Name: %s \n Last Name: %s \n Org: %s \n\n Subject: %s\n\n Message: %s" %  (infos[0], infos[1],infos[2], infos[3],infos[4], infos[5])
   subject = "%s : %s" % (infos[1], infos[4]);
   error = phc_email(addrs, subject, msg_cont);