<gh_stars>0
from views.email_password import pwd

def sendMessage(email, text):
	import smtplib, string

	fromaddr = '<EMAIL>'
	toaddrs  = email
	subj = "Membership Status"

	msg  = "Hello,"
	msg = msg + "\r\n" + text

	body = str.join("\r\n", (
		"From: %s" % fromaddr,
		"To: %s" % toaddrs,
		"Subject: %s" % subj,
		msg,
	       ))


	# Gmail Login

	username = '<EMAIL>'
	password = <PASSWORD>

	# Sending the mail

	server = smtplib.SMTP('smtp.gmail.com:587')
	server.ehlo()
	server.starttls()
	server.login(username,password)
	server.sendmail(fromaddr, [toaddrs], body)
	server.quit()

from views.email_password import pwd

def sendMessage(email, text):
	import smtplib, string

	fromaddr = '<EMAIL>'
	toaddrs  = email
	subj = "Membership Status"

	msg  = "Hello,"
	msg = msg + "\r\n" + text

	body = str.join("\r\n", (
		"From: %s" % fromaddr,
		"To: %s" % toaddrs,
		"Subject: %s" % subj,
		msg,
	       ))


	# Gmail Login

	username = '<EMAIL>'
	password = <PASSWORD>

	# Sending the mail

	server = smtplib.SMTP('smtp.gmail.com:587')
	server.ehlo()
	server.starttls()
	server.login(username,password)
	server.sendmail(fromaddr, [toaddrs], body)
	server.quit()
# Gmail Login # Sending the mail